D - Delegates revisited
- Sebastian Moleski (8/8) May 30 2003 Hi,
Hi, One thing that has always made me wonder when I see delegates (pointers to member functions): why not allow delegates be assigned static member functions or regular non-member functions? The way it could work is that the pointer to the object inside the delegate be set to null and, when the delegate is invoked, a run-time check is added to use proper call semantics.What do you all think? sm
May 30 2003