ben kuin a écrit :
hi
Nekomls documentation is a bit sparse, so I hope this excuses this
basic question:
How can I access the value of an mutable var (reference)? (There is
nothing written in the doc about mutables, so maybe I'm completely
wrong). It should be *var - no?
This doesn't work:
var mutbl = &0;
mutbl := 789;
print *mutbl;
error: Cannot unify '_a -> void and int
// "Cannot unify '_a ..." what does that mean?
try :
print (*mutbl);
The * operator is ambiguous in some cases in NekoML.
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)