ref on hidden this param

Tim tim.dlang at t-online.de
Sun Oct 5 10:21:30 UTC 2025


On Sunday, 5 October 2025 at 05:28:49 UTC, TwoOfCups wrote:
> I am guessing I'm not the first person to think of this.
>
> But allowing ref to be applied to the hidden this on member 
> functions would be nice.
> could be used for lazy init of objects, reassigning the lvalue 
> and stuff.

This has previously been implemented here: 
https://github.com/dlang/dmd/pull/15389

It caused different problems, so it has been reverted here: 
https://github.com/dlang/dmd/pull/15637


More information about the Digitalmars-d mailing list