auto ref is on the docket

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 23 17:23:41 PDT 2015


On 06/23/2015 03:01 AM, Andrei Alexandrescu wrote:
> On 6/22/15 4:09 PM, Timon Gehr wrote:
>> There is no reason to prevent templates from using the mechanism that
>> generates only one copy. The two mechanisms shouldn't share the same
>> syntax, because then there is no way to tell them apart for template
>> functions.
>
> I understand. For my money I'd be okay with what's being proposed
> instead of complicating the language yet again for

We're introducing a new feature either way. I don't agree that the 
proposed hack complicates the language any less.

> the perfect solution.

We might as well do it right. Why promote unnecessary template bloat?


More information about the Digitalmars-d mailing list