mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
There is one part that differs from const declarations: 0-parameter function calls are allowed (by accident) as const values, but not for default parameter values.
9 lines
104 B
Text
9 lines
104 B
Text
use math;
|
|
|
|
// "Only simple operands..."
|
|
|
|
function foo(x := ConstPi())
|
|
print(x);
|
|
endfunction
|
|
|
|
foo();
|