passing functions as parameters to functions

Archive of the older Feature Request Forum Posts
Locked
phao
Grandmaster Poster
Posts: 129
Joined: Fri Aug 31, 2007 2:25 pm

passing functions as parameters to functions

Post by phao »

for exemple:

Code: Select all

function f(fref g(value), x)
    return g(x);
endfunction
I use 'fref' in the exemple to show that 'g' is the function reference passed to the function 'f'.

I think using this syntax:

Code: Select all

function f(fref g, x)
    return g(x);
endfunction
It would be better (IMO).
Locked