mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
17 lines
281 B
Text
17 lines
281 B
Text
// Scope04 - make sure locals in sub-blocks can override other locals
|
|
//
|
|
function bar()
|
|
var a array;
|
|
a[1] := 4;
|
|
a[2] := 5;
|
|
a[3] := 9;
|
|
return a;
|
|
endfunction
|
|
|
|
function foo()
|
|
foreach i in bar()
|
|
print( "1. I=" + i );
|
|
endforeach
|
|
endfunction
|
|
|
|
foo();
|