[Issue 22522] [dip1000] Creating interior pointers allowed in @safe
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 15 15:48:08 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22522
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
The error message isn't great, but it is correctly identifying the problem.
ptr = &storage;
*is* taking the address of `this`, and assigning it to `this`.
As in`storage` is *(this+0), and `ptr` is *(this+8)
--
More information about the Digitalmars-d-bugs
mailing list