forked from xxq250/Nasal-Interpreter
update
This commit is contained in:
@@ -43,4 +43,14 @@ var cl_fun=func(x)
|
||||
b=cl_fun(1);
|
||||
c=cl_fun(10);
|
||||
print(b());
|
||||
# output 1
|
||||
# output 1
|
||||
|
||||
a=3;
|
||||
b=0;
|
||||
if(a==3)
|
||||
{
|
||||
var c=10;
|
||||
b=func{return c;};
|
||||
}
|
||||
print(b());
|
||||
# output 10
|
||||
Reference in New Issue
Block a user