Abstractioning away main/winMain
Prudence via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Sep 4 19:29:04 PDT 2015
If I use functions instead of delegates it works.
I suppose the problem then is that the delegate can't create a
fat pointer when used in a static context. (i.e., why the
functions work)
The question is, then, Can I construct a delegate manually and
supply my own context pointer?
e.g.,
class X { }
void foo() { }
constructDelegate(&foo, new X()) // Creates a void delegate()
with context X
More information about the Digitalmars-d-learn
mailing list