June 01, 2012 [Issue 8177] Let the _type_ create the object; don't call _d_newclass directly! | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8177 --- Comment #2 from wfunction@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: ------- |
Copyright © 1999-2021 by the D Language Foundation