why local variables cannot be ref?

rumbu rumbu at rumbu.ro
Mon Nov 25 08:20:59 UTC 2019


On Monday, 25 November 2019 at 08:07:50 UTC, Fanda Vacek wrote:

> Thanks for answer, I'm coming from C++. But anyway, pointers 
> are not allowed in @safe code, so this is not always solution. 
> Workaround exits even for @safe code, so my question remains 
> the same. What is a rationale for such a language design 
> restriction, if it can be workarounded easily.

Enjoy:
https://forum.dlang.org/post/blgcfjqdhtusavlrgdjr@forum.dlang.org




More information about the Digitalmars-d-learn mailing list