Uncallable delegates

Timon Gehr timon.gehr at gmx.ch
Sat May 16 05:53:46 UTC 2026


On 5/16/26 04:02, Walter Bright wrote:
> Thank you. It suggests to me like the problem is with the pure inheritance.
> ...

What? No.

It's an interaction with `pure` factory functions. Nothing at all to do 
with inheritance.


> I suggest asking Gemini if it can reproduce the problem without a `pure` 
> annotation.
> ...

I understand what is going on without asking Gemini.

> Or at least if it can craft a simpler example of the problem.

You specifically asked to modify `immutable` data, the conversion from 
mutable to `immutable` is needed for this.

Violating `const` does not require a `pure` annotation, but violating 
`const` alone will likely not allow you to modify `immutable` data in 
this specific case.


More information about the dip.development mailing list