why local variables cannot be ref?

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Nov 25 08:32:53 UTC 2019


On Mon, Nov 25, 2019 at 08:07:50AM +0000, Fanda Vacek via Digitalmars-d-learn wrote:
[...]
> But anyway, pointers are not allowed in @safe code, so this is not
> always solution.
[...]

This is incorrect. Pointers *are* allowed in @safe code. Pointer
*arithmetic* is not allowed.


--T


More information about the Digitalmars-d-learn mailing list