passing functions as parameters to functions
Posted: Sat Mar 29, 2008 9:36 am
for exemple:
I use 'fref' in the exemple to show that 'g' is the function reference passed to the function 'f'.
I think using this syntax:
It would be better (IMO).
Code: Select all
function f(fref g(value), x)
return g(x);
endfunctionI think using this syntax:
Code: Select all
function f(fref g, x)
return g(x);
endfunction