[Issue 4545] Alias to members possible without "this" instance

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 24 02:07:43 PST 2012


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



--- Comment #9 from Denis <verylonglogin.reg at gmail.com> 2012-01-24 13:07:34 MSK ---
(In reply to comment #8)
> (In reply to comment #7)
> > ---
> > alias s.i a;    // illegal, s.i is an expression
> > ---
> > is still in the docs and compilable.
> 
> And it's not a bug.

As I understood everywhere in `statement.dd` "illegal" means incorrect
statement and it shouldn't be compilable. So "illegal" in `expression.dd` is
expected to do so too.

You reply means for me that those "illegal" statements doesn't compile with dmd
but it is implementation specific and an other D compiler may compile them fine
and it will result in undefined behavior. It will be a hell.

Or am I mistaken somewhere?

-- 
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