How to make delegate refer to itself?

lomereiter lomereiter at gmail.com
Sat Nov 23 15:15:23 PST 2013


Why so much fuss about delegates? I would simply define an 
interface.

// factory function for simple cases
queue.register(eventHandler((Event e) { ... }));

// here, 'this' is available
class SomeComplicatedHandler : IEventHandler { ... }




More information about the Digitalmars-d-learn mailing list