Delegates and classes for custom code.

Chris Katko ckatko at gmail.com
Tue Apr 17 04:02:13 UTC 2018


Some typos in there.

execute == on_draw.

Basically, I'm just sending a delegate/lambda "custom function" 
at initialization time. But I'd like that delegate to somehow 
access the holding classes functions. Or figure out how to do 
that.

Maybe the class somehow sends the delegate a this parameter when 
the class goes to execute it?


More information about the Digitalmars-d-learn mailing list