First Draft: Static Single Assignment

Peter C peterc at gmail.com
Fri Dec 5 22:35:04 UTC 2025


On Tuesday, 2 December 2025 at 07:50:57 UTC, Walter Bright wrote:
> Initial implementation:
>
> https://github.com/dlang/dmd/pull/22171

This should be allowed:

final int x; // A final variable declared without an initializer.
x = 42; // currently getting -> Error: cannot modify `final x`



More information about the dip.development mailing list