[dmd-beta] D 2.059 beta 4
Walter Bright
walter at digitalmars.com
Mon Apr 9 20:55:16 PDT 2012
On 4/9/2012 7:44 PM, Jonathan M Davis wrote:
> On Monday, April 09, 2012 19:40:43 Walter Bright wrote:
>> On 4/9/2012 7:32 PM, Nick Sabalausky wrote:
>>> Although, if there really is good merit to struct lits not veing lvalues,
>>> then maybe all we need is to wait until "auto ref" is usable for
>>> non-templates? (If that would even be possible...?)
>> Not possible, as the binary ABI would be different.
> It was my understanding that the auto ref was supposed to work with non-
> templated functions - at least what Andrei proposed was - but that you
> misunderstood that and made it only work with templates. And as long as it
> only works with templates, it's usefulness is very limited. opEquals would be
> a _prime_ case for where it would be useful.
>
How could that possibly work for the same function, considering that the code
for each would be quite different, including the calling code?
More information about the dmd-beta
mailing list