First Draft: ref For Variable Declarations

Dukc ajieskola at gmail.com
Wed Apr 17 14:29:17 UTC 2024


On Wednesday, 17 April 2024 at 14:07:04 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
>
> Currently the DIP only shows aliasing of variables, expressions 
> like the above do not appear to be supported.

If that was the case this DIP would be completely useless, as you 
could already do everything it enabled with `alias`.

I'm sure the intended restriction is the same as with `ref` 
function parameters: the expression must be an lvalue.


More information about the dip.development mailing list