Hi,
Suppose that I have the following code :
(* Test.sml *) fun f() = print "-------test------"; val test = f();
Then if I compile this via "polyc -c Test.sml" the program actually runs before emitting an error message :
-------test------poly: : error: Value or constructor (main) has not been declared Found near PolyML.export (List.nth (CommandLine.arguments (), 3), main) Static Errors
Why does the program attempt to run instead of merely compiling?
Thanks