[Issue 5056] Warning against virtual method call from constructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 16 11:38:49 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5056
--- Comment #6 from nfxjfg at gmail.com 2010-10-16 11:38:09 PDT ---
(In reply to comment #5)
> Hm... I just tried it, it does work. Were you thinking of something else?
This confuses me. It works both in D1 and D2. Maybe it's a regression?
The spec says:
"3. It is illegal to refer to this implicitly or explicitly prior to making a
constructor call."
http://www.digitalmars.com/d/1.0/class.html#constructors
And I thought past versions of dmd conform to this, but apparently I'm wrong.
Anyway, if the program in comment #5 is actually valid in D2 (and with using
writefln in D1), I retract my statement and apologize for the noise.
--
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