Is AliasAssign Now Official?

Dukc ajieskola at gmail.com
Thu Aug 19 18:29:24 UTC 2021


On Thursday, 19 August 2021 at 15:42:27 UTC, evilrat wrote:
>
> OMG! What if we wanted extra safety to avoid redefining it, a 
> `const alias`?

Use it for something right away and it will get locked. From the 
spec:

> The value of an AliasDeclaration or left hand side (lvalue) of 
> an AliasAssign may not be used prior to another AliasAssign to 
> the same lvalue other than in the right hand side of that 
> AliasAssign.




More information about the Digitalmars-d mailing list