Taking the address of an rvalue struct

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Jul 22 11:53:27 PDT 2011


On 7/22/11 1:30 PM, Peter Alexander wrote:
> On 22/07/11 6:26 PM, Andrei Alexandrescu wrote:
>> On 7/22/11 12:10 PM, dsimcha wrote:
>>> == Quote from Andrei Alexandrescu (SeeWebsiteForEmail at erdani.org)'s
>>> article
>>>> This has long been a feature that I attempted to remove several times.
>>>
>>> What? Taking the address of this? Invoking methods on rvalue structs?
>>
>> The latter.
>
> How would you stop it though without totally crippling the language?

That's why the feature hasn't been removed. Nevertheless, it's an 
awkward part of the language.

Andrei



More information about the Digitalmars-d mailing list