digitalmars.D - food for thought
- Superstar64 (11/11) Oct 07 2016 If you want a class without a root object just use extern(C++).
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;
}
Oct 07 2016








Superstar64 <Hexagonalstar64 gmail.com>