Jayme Davis' WebLog

Playing games so you don't have too...

Delegates

Ever tried to make a delegate that accepts a void* parameter? Since it's type-safe, you'd want/need to support multiple datatypes and ranks (if there's arrays involved) so you end up have to do Foo1, Foo2, Foo3 because you can't overload a delegate based on just parameter types, you actually have to explicitly change the method's name. Any methods that accept the delegate, you have to provide an overload for each of the additional delegates... multiply that by a delegate that accepts 2 or 3 void* params.. you get the picture.

Jayme

 

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required)