food for thought

Superstar64 via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 7 08:33:25 PDT 2016


If you want a class without a root object just use extern(C++).
Also this is apparently legal:
extern (C++) class Root : Object
{
};

int main()
{
     auto root = new Root;
     Object obj = root; // is this safe?
     return 0;
}


More information about the Digitalmars-d mailing list