this as lvalue?

bearophile bearophileHUGS at lycos.com
Sun Sep 5 19:14:37 PDT 2010


Andrei:
> If you can write (new Foo).x = x, then you can also write this.x = x. Try it now!

See my bug reports/enhancement requests (about three days ago in a program of mine I have added a bug that enhancement 4407 is able to avoid):

Arguments and attributes with the same name
http://d.puremagic.com/issues/show_bug.cgi?id=3878

Catch wrong argument<->attribute assignments in methods
http://d.puremagic.com/issues/show_bug.cgi?id=4407

Bye,
bearophile


More information about the Digitalmars-d mailing list