PenUltima Online

It is currently Sat Sep 06, 2008 6:02 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: passing functions as parameters to functions
PostPosted: Sat Mar 29, 2008 9:36 am 
Offline

Joined: Fri Aug 31, 2007 2:25 pm
Posts: 58
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).

_________________
Hello from Brazil :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl