Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
'FUNCTION TO BE PASSED
|
||||
'=====================
|
||||
|
||||
function f(double d,e) as double
|
||||
return (d+e)*2
|
||||
end function
|
||||
|
||||
|
||||
'FUNCTION TAKING A FUNCTION AS AN ARGUMENT
|
||||
'=========================================
|
||||
|
||||
function g(sys p) as string
|
||||
|
||||
declare function x(double d,e) as double at p
|
||||
|
||||
return x(10,11)
|
||||
|
||||
end function
|
||||
|
||||
|
||||
'TEST: PASSING ADDRESS OF FUNCTION f
|
||||
'===================================
|
||||
|
||||
'the name 'f' is combined with the prototype signature '#double#double'
|
||||
'@' signifies the address of the function is being passed
|
||||
|
||||
print g(@f#double#double) 'result '42'
|
||||
Loading…
Add table
Add a link
Reference in a new issue