September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
5
Task/Function-prototype/Phix/function-prototype.phix
Normal file
5
Task/Function-prototype/Phix/function-prototype.phix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
forward function noargs() -- Declare a function with no arguments
|
||||
forward procedure twoargs(integer a, integer b) -- Declare a procedure with two arguments
|
||||
forward procedure twoargs(integer, integer /*b*/) -- Parameter names are optional in forward (and actual) definitions
|
||||
forward function anyargs(sequence s) -- varargs are [best/often] handled as a (single) sequence in Phix
|
||||
forward function atleastonearg(integer a, integer b=1, ...); -- Default makes args optional (== actual defn)
|
||||
Loading…
Add table
Add a link
Reference in a new issue