First Draft: Static Single Assignment

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sun Nov 23 14:44:26 UTC 2025


On 23/11/2025 10:46 PM, Walter Bright wrote:
> What we'd like to do is make the 'this' parameter explicit on member 
> functions, which would clear up a lot of confusing cases.

We'll need to be very careful with this line of thinking:

```d
scope {
	void func() {
	}
}

scope:

void func2() {
}
```

Doing stuff like this is good, and useful.
I use it, a lot.

Explicitly stating that final will bind to the function declaration, not 
its this pointer is required.

Really the only way to get out of this is to use different keywords.


More information about the dip.development mailing list