this as lvalue?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Sep 5 15:03:13 PDT 2010


Gmail likes to eat my code for some reason, it just ate two closing
parantheses.. lol.

On Mon, Sep 6, 2010 at 12:02 AM, Andrej Mitrovic
<andrej.mitrovich at gmail.com> wrote:
> Does this mean assigning to fields won't be an option anymore when using this?
>
> E.g.:
>
> class Foo
> {
>    int x;
>    int y;
>
>    void changeXY(int x, int y)
>    {
>        this.x = x;
>        this.y = y;
>    }
> }
>
> On Sun, Sep 5, 2010 at 6:09 PM, JMRyan <nospam at nospam.com> wrote:
>> Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote in
>> news:i5rovm$1q4b$1 at digitalmars.com:
>>>
>>> For classes this must be an rvalue.
>>>
>>> Andrei
>>
>> I reported this as issue 4819.
>>
>


More information about the Digitalmars-d mailing list