--- Comment #7 from Steven Schveighoffer <> 2010-10-16 
12:09:12 PDT ---
(In reply to comment #6)
> (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."

I interpret that the same way you do.   I think maybe that this is a rule that
was removed, but someone forgot to remove it from the docs?  I think you should
file a separate doc bug on it.

It doesn't strike me as a good requirement anyways.  What problems does having
that restriction prevent?

> And I thought past versions of dmd conform to this, but apparently I'm wrong.

BTW, the file compiled with the oldest compiler I had installed (2.033).  So it
certainly has been this way for some time.  I expect at some point it was as
the docs state or else why would that rule even be there?

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to