> On 01.05.2006 22:16, Christopher Nelson wrote:
> >> On 01.05.2006 19:48, Squee wrote:
> >>> I've always been a firm supporter of functors. They're 
> just cleaner 
> >>> (in my mind) than callback functions, especially when a way
> >> to easily
> >>> provide instance-specific data through the constructor.
> >> Sorry, you wouldn't get instance-specific data. The class methods 
> >> would be static.
> > 
> > Why?
> 
> If you ask "why would the methods be static": Well, in both 
> "alternatives" you initially offered you use static functions/methods.

Ha! That was an accident of copy and paste.  Thank you for alerting me
to that.
This is corrected.

class onParticleFountainEvent : public iAws2ScriptEvent 
{
public:
        /** Callback for particle fountain events like Start/Stop,
etc.*/
        void operator()(iAws2ScriptObject *info)
        {
                ... Code ...
        }
};

There is no reason to use static methods.  I'm sorry if that caused some
confusion.  Does anyone have a problem with the corrected version?

-={C}=-


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to