mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
13 lines
177 B
Text
13 lines
177 B
Text
|
|
var a := 0;
|
||
|
|
|
||
|
|
// Calling `add_one` four times increases `a` to `4`.
|
||
|
|
add_one( a )( a )( a )( a );
|
||
|
|
|
||
|
|
print( a );
|
||
|
|
|
||
|
|
function add_one( byref a )
|
||
|
|
++a;
|
||
|
|
|
||
|
|
return @add_one;
|
||
|
|
endfunction
|