Quirks of 'alias foo this'
Andrej Mitrovic
andrej.mitrovich at gmail.com
Mon Apr 25 18:58:55 PDT 2011
I have a similar problem. :)
I'd like to catch a call to a COM object to check if it was properly
initialized first.
Here's one way to do it with regular classes:
http://codepad.org/lHsQf4UG
You can read about whitehole here:
http://www.digitalmars.com/d/2.0/phobos/std_typecons.html#WhiteHole
I think the above example could be used with COM objects but I haven't
tried yet.
More information about the Digitalmars-d-learn
mailing list