Return by 'ref' problems...

Manu turkeyman at gmail.com
Fri May 4 16:30:00 PDT 2012


On 4 May 2012 23:16, Jakob Ovrum <jakobovrum at gmail.com> wrote:

> Perhaps it would be better if "a" was declared like this:
>>
>> ref(int) a ();
>>
>
> ref is not a type qualifier, I think that would be even more confusing. It
> would be completely out of sync with the rest of the language.
>

But maybe it should be, then you'd be able to declare ref variables
anywhere, like in C++... what's the disadvantage of that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120505/5f411d81/attachment.html>


More information about the Digitalmars-d mailing list