First Draft: Static Single Assignment
jmh530
john.michael.hall at gmail.com
Thu Dec 4 15:18:18 UTC 2025
On Thursday, 4 December 2025 at 08:58:03 UTC, Walter Bright wrote:
> I've come to realize the following:
>
> ```d
> void test() {
> final int x = 3;
> pragma(msg, typeof(&x));
> }
> ```
> prints: const(int)*
>
> which is a more practical way to make this all work. I've made
> the changes to the PR.
So taking the address of x gives a const pointer? Is `x` itself
const?
More information about the dip.development
mailing list