Official Core: 096.7
Official Core: 097 2008-02-26
POL Home
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
passing functions as parameters to functions
PenUltima Online Forum Index
->
Feature Suggestions
Display posts from previous
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
passing functions as parameters to functions
Author
Message
phao
Joined: 31 Aug 2007
Posts: 33
Posted: Sat Mar 29, 2008 1:36 pm
Post subject: passing functions as parameters to functions
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).
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