First Draft: Static Single Assignment

Peter C peterc at gmail.com
Mon Nov 17 10:58:10 UTC 2025


On Monday, 17 November 2025 at 06:18:27 UTC, Peter C wrote:
> ..
> In summary, it is *the duty* of auto to also copy the binding 
> restriction!

No. I'm wrong, and I better correct myself.

int i;
final int* pi = &i;
auto p = pi;

The binding restriction (i.e. the storage class specifier 
'final') is purely a local property of the variable pi and should 
not propagate to the new, copied variable p

so yes, as you say, the deduced type of p should be -> int*



More information about the dip.development mailing list