You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a practical argument against doing it. Let's start with the fact that this is correct:
function f() -> begin
let local = 123;
let o = object begin
function m() -> local;
end;
o.m();
end;
let local = 5;
f();
I order to detect that there is a global used in m that is declared later on, there would have to be a whole separate compiler pass to detect this. It's probably not worth the effort.
Code:
Error:
I guess FML doesn't support closures but it should probably error when compiling, not interpreting.
The text was updated successfully, but these errors were encountered: