[Issue 8177] Let the _type_ create the object; don't call _d_newclass directly!

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Sep 10 15:47:41 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=8177

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx

--- Comment #2 from wfunction at hotmail.com ---
Oops, another correction, this time more minor:

There should be no 'typeid' for opDelete. It should simply say
typeof(instance).opDelete(instance).

(The goal here is to avoid virtual dispatch for opDelete() -- if the class
designer deems them necessary, he/she can implement the virtual dispatching
manually; for the compiler, only the compile-time type of the variable really
matters.)

--


More information about the Digitalmars-d-bugs mailing list