vassilych / cscs

CSCS: Customized Scripting in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about scope

shincar opened this issue · comments

Hello Vassily,

I have a question about scope of this interpreter. I wrote a script

i = 0;

function f()
{
  i = 1;
  print(i);
}

print(i);
f();
print(i);

And expect get output
0 1 0
But it returned
0 1 1
Is it possible to let interpreter take care of scope by itself?

Regards,
Adam