Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /tests/trunk/bugs/tests.obsolete/bug812.sml
ViewVC logotype

View of /tests/trunk/bugs/tests.obsolete/bug812.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2071 - (download) (annotate)
Tue Oct 31 02:58:12 2006 UTC (12 years, 10 months ago) by blume
Original Path: tests/trunk/bugs/tests/bug812.sml
File size: 253 byte(s)
moved tests trunk
(* bug812.sml *)

fun how_big(x:real):unit*unit*real =
  if Real.isNormal x then 
    (print(Real.toString x), print "\n", #3(how_big(2.0*x)))
  else
    raise Overflow;


how_big 2.0; (* should give largest value then "uncaught exception Overflow"*) 


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0