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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 1 00:13:04 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8177



--- Comment #2 from wfunction at hotmail.com 2012-06-01 00:05:32 PDT ---
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.)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list