Binding temporaries to ref [WAS: I close BIP27. I won't be pursuing BIPs anymore]

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 20 14:53:46 PDT 2016


On 10/20/2016 04:57 PM, Walter Bright wrote:
> On 10/20/2016 12:49 PM, Andrei Alexandrescu wrote:
>> On 10/20/2016 06:23 AM, Ethan Watson wrote:
>>> Suitable enough for simple functions. But beyond that becomes
>>> maintenance hell.
>>
>> I agree this workaround has a combinatorial problem.
>
> Yes, Ethan made a good point I hadn't thought of. And any DIP on the
> matter should cover this point (else it will come up again). These sorts
> of things are why a DIP should be done - to collect all these points in
> one place.

The combinatorial explosion was one core motivation for C++ rvalue 
references. I think the authors of the would-be DIP would do good to be 
conversant with that proposal. -- Andrei



More information about the Digitalmars-d mailing list