Concern about the ref return argument and scope

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 27 23:54:59 PST 2015


On 1/27/2015 8:57 PM, deadalnix wrote:
> For ref return, we can still
> make it safe by defining the lifetime of the ref return as the intersection of
> the lifetime of the ref parameters and call it a day. As far as I can tell, this
> cover the vast majority of cases.

The trouble with that is when you *do* need to return a ref that is unrelated to 
the ref parameters, there will be no way to do it.


More information about the Digitalmars-d mailing list