scope ref const(T) --> error?!

Manu turkeyman at gmail.com
Thu May 3 13:09:34 PDT 2012


You're looking for 'in ref T'? I was also trying to do this today funnily
enough, and it seems a shame this doesn't work. Is this a bug, or is it
intended that it's not supported?

On 3 May 2012 21:28, Mehrdad <wfunction at hotmail.com> wrote:

> What's wrong with passing a struct as scope ref const?
>
> I want to avoid copying the struct, and its information is only read
> inside the function...
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120503/f53b2c0d/attachment.html>


More information about the Digitalmars-d mailing list