PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
passing functions as parameters to functions

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
phao



Joined: 31 Aug 2007
Posts: 34

PostPosted: Sat Mar 29, 2008 1:36 pm    Post subject: passing functions as parameters to functions Reply with quote

for exemple:

Code:
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:
function f(fref g, x)
    return g(x);
endfunction


It would be better (IMO).

Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty