View Single Post
  #11  
Old 05-21-2007, 11:25 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
You cant overload functions since everything is TGraalVar in the basic sense. You could have an if statement in a function to check the type of the parameter, but doing that is bad (I've tried it) since variables aren't always what they're supposed to be. Better to sick with separate functions. Though I would like it if the params array was present for all functions and not just actions.

What I would like is Custom Object Types And the ability to add global functions.

I have yet to see an actual demonstration of function objects though I would like it very much.
__________________
Reply With Quote