mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
18 lines
298 B
Text
18 lines
298 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;
|
|
a[10] := 27;
|
|
return a;
|
|
endfunction
|
|
|
|
function foo()
|
|
foreach i in bar()
|
|
print( "1. I=" + i );
|
|
endforeach
|
|
endfunction
|
|
|
|
foo();
|