http://d.puremagic.com/issues/show_bug.cgi?id=8545
--- Comment #3 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-08-13 07:57:58 PDT --- (In reply to comment #2) > I don't think this is major, because you can use a union: > > { > static union U { Object o; void* p; } > U u; > u.o = this; > return u.p; > } > > In fact, because a union can be used for reinterpret casting, I don't think > any > new syntax or semantics are needed. I'm speaking in terms of wrapping C++ libraries (A C++ wrapper class has an inner d_object pointer which it uses to invoke D virtual methods). You're asking me to introduce overhead for every time a new class object is instantiated. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------