We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d21c76 commit 2db6ed4Copy full SHA for 2db6ed4
examples/fib.cal
@@ -1,10 +1,7 @@
1
include "cores/select.cal"
2
include "std/io.cal"
3
4
-func fib begin
5
- let cell n
6
- -> n
7
-
+func fib cell n -> cell res begin
8
if n 1 <= then
9
n return
10
else
source/backends/lua.d
@@ -879,7 +879,9 @@ class BackendLua : CompilerBackend {
879
output ~= format("func__%s()\n", node.func.Sanitise());
880
}
881
882
- output ~= "dspBackup = mem[vsp]\n";
+ output ~= "dspBackup = mem[vsp]\n"; // TODO:
883
+ // this is TERRIBLE
884
+ // if you try/catch a function with a try/catch inside of it then it all breaks
885
output ~= "vsp = vsp + 1\n";
886
887
++ blockCounter;
0 commit comments