ref parameters: there is no escape

Mehrdad wfunction at hotmail.com
Sun Aug 14 23:16:55 PDT 2011


On 8/14/2011 7:20 AM, Andrei Alexandrescu wrote:
> Walter and I have had a long discussion and we thought we'd bring an 
> idea for community review.
>
> We believe it would be useful for safety purposes to disallow escaping 
> addresses of ref parameters. <snip>

... I hope you're joking.

(1) I thought the whole point of D was that you didn't need pointers to 
program effectively?

(2) Isn't this what compiler **warnings** are for?


More information about the Digitalmars-d mailing list