[Issue 24024] cannot pass class this to ref class

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 4 09:44:00 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24024

kinke <kinke at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net

--- Comment #1 from kinke <kinke at gmx.net> ---
This is the behavior I would expect - a class-ref `this` is special and not to
be mutated. What if `foo()` sets it to null?

--


More information about the Digitalmars-d-bugs mailing list