[Issue 22522] [dip1000] Creating interior pointers allowed in @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 15 17:22:53 UTC 2022


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

--- Comment #6 from Dennis <dkorpel at live.nl> ---
(In reply to Dennis from comment #5)
> It's saying `this` has longer lifetime than `this`. Since when does `x > x`
> evaluate to true?

Nevermind, it says `this` has longer lifetime than "address of variable
`this`", but, it should be in test suite and the modification with `return
scope` needs to error.

--


More information about the Digitalmars-d-bugs mailing list