【发布时间】:2016-04-23 02:57:48
【问题描述】:
为什么会编译?
fun foo (h::t) =
h = hd(t);
但这不是
fun foo (h::t) =
PolyML.print (h::t);
print "\n";
h = hd(t);
?
Value or constructor (h) has not been declared Found near =( h, hd(t))
Value or constructor (t) has not been declared Found near =( h, hd(t))
Exception- Fail "Static errors (pass2)" raised
【问题讨论】: