I mistyped a word constant and was a bit surprised by the error message.
rda]- poly Poly/ML 5.5.2 Release
0xw9;
Error-malformed integer constant: 0w Static Errors
Contrast this with SML/NJ:
rda]- sml Standard ML of New Jersey v110.76 [built: Mon Mar 3 16:26:20 2014] - 0xw9; stdIn:3.2-3.5 Error: unbound variable or constructor: xw9 stdIn:3.1-3.5 Error: operator is not a function [literal] operator: int in expression: 0 <errorvar>
With the following contrived example:
fun f x y = print "Boo!" val xw9 = "xw9"; f 0xw9;
Poly/ML reports a syntax error while SML/NJ and mlton both print Boo!
I am not sure who is right about this.
Regards,
Rob.