escaping addresses of ref parameters - not

Jarrett Billingsley jarrett.billingsley at gmail.com
Sun Feb 8 19:54:21 PST 2009


On Sun, Feb 8, 2009 at 10:39 PM, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
>
> Whaddaya think?

I think yes.  ;)

I have only used ref params as either a performance optimization when
passing structs or when I want to modify a value in the calling
function.  Allowing refs to escape seems really dangerous.



More information about the Digitalmars-d mailing list