Return by 'ref' problems...

Manu turkeyman at gmail.com
Fri May 4 05:27:06 PDT 2012


On 4 May 2012 14:49, Jacob Carlborg <doob at me.com> wrote:

> On 2012-05-04 12:09, Manu wrote:
>
>  Ah, of course! I didn't spot that >_<
>> Thanks.
>>
>> I suppose technically, 'ref' can lead to the same ambiguity. This must
>> be the core of the problem. ref needs to be supported with parentheses?
>>
>
> I'm not sure, since you can't declare a variable as "ref" I think the
> syntax should work. But the syntax with parentheses should probably work as
> well, to be consistent with "const".


You can declare a variable as ref in the parameter list, that's where the
ambiguity could arise, same with const.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120504/7cbce012/attachment.html>


More information about the Digitalmars-d mailing list