-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
This should be infinite loop code, I think, while experimenting with Neko programming.
prompt$ cat gotos.neko
$print("start");
$goto(next);
$print("skip");
next:
$print("continue");
$goto(end);
$print("skip");
end:
$print("end");
$goto(next);
Instead, the VM translation fails
prompt$ nekoc gotos.neko
Called from neko/Main.nml line 153
Called from core/Args.nml line 57
Called from neko/Main.nml line 68
Called from core/Array.nml line 120
Called from neko/Bytecode.nml line 320
Called from core/Core.nml line 179
Called from core/Core.nml line 212
Exception : Invalid_argument(Array.get)
Fedora 27, from packages nekovm, nekovm-devel 2.2.0-4 x86_64
Replace the last $goto and all goes well.
Metadata
Metadata
Assignees
Labels
No labels