Hi,
I thought the following would print "Hello" to stdout but it does not:
feldt:~/tmp/nekotest$ cat t1.neko
puts = function(str) {
$print(str + "\n");
}
feldt:~/tmp/nekotest$ cat t2.neko
puts("Hello");
feldt:~/tmp/nekotest$ nekoc t1.neko t2.neko
feldt:~/tmp/nekotest$ nekoc -link t3.n t1 t2
t1
t2
feldt:~/tmp/nekotest$ neko t3
Called from t2.neko line 1
Uncaught exception - Invalid call
Can you explain how the global context works when linking modules?
Thanks,
Robert Feldt
--
Neko : One VM to run them all (http://nekovm.org)