Property rewriting; I feel it's important. Is there still time?

Ellery Newcomer ellery-newcomer at utulsa.edu
Wed Mar 10 09:05:31 PST 2010


On 03/10/2010 10:48 AM, Andrei Alexandrescu wrote:
> On 03/10/2010 08:42 AM, Andrei Alexandrescu wrote:
>> {auto t = foo.prop; auto t1 = t; ++t1; foo.prop = t1; return t;}()
>>
>> within an rvalue context, and into:
>>
>> {auto t = foo.prop; ++t; foo.prop = t; return t;}()
>>
>> within a void context.
>
> The latter should be:
>
> {auto t = foo.prop; ++t; foo.prop = t;}()
>
> because there's no need to return a value.
>
>
> Andrei

no

auto a = foo.prop++;

?



More information about the Digitalmars-d mailing list