Editions Ideas
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Tue Dec 16 21:08:39 UTC 2025
On 17/12/2025 10:02 AM, jmh530 wrote:
> On Tuesday, 16 December 2025 at 20:45:21 UTC, Richard (Rikki) Andrew
> Cattermole wrote:
>> [snip]
>>
>> I have my own plans, but they'll need to be discussed next month.
>>
>> https://forum.dlang.org/post/llqcjziyurwmyhzseonm@forum.dlang.org
>>
>> We don't need alias this semantic, but we do need a fallback lookup
>> via a method.
>>
>> Get rid of the overriding capability, and let things stay single
>> inheritance.
>
> As was said above, I think people would have an open mind so long as
> there is an upgrade path. I think a lot of people would have trouble
> with removing "alias this" without one.
Yeah absolutely.
But there will be some behavior that won't be replicated wrt.
overriding, and that is an intentional breakage.
For instance I don't want fields supported, just a single method.
You don't need fields supported.
```d
T field;
ref T opDispatch(string op : "") => field;
```
Longer sure, (and yes there are opinions about a different signature),
but it'll optimize out and keeps it being a simpler feature.
I'm sure once discussed it'll change, I would be surprised if it
survives a meeting for what I came up with.
More information about the Digitalmars-d
mailing list