On 12/30/14 7:32 PM, Manu via Digitalmars-d wrote:
void mayEscape(ref int x); // <-- may escape this ref arg

void t()
{
   int onStack = 1;
   mayEscape(onStack); // <- perfectly legal, and equally unsafe
}

DIP25 puts this code in illegality. I don't think the proposal has been explicit about that, will fix. Thanks! -- Andrei

Reply via email to