https://issues.dlang.org/show_bug.cgi?id=11176
Nick Treleaven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #8 from Nick Treleaven <[email protected]> --- (In reply to David Nadlinger from comment #2) > The easiest fix would be to just disallow accessing the .ptr property in > @safe code. There probably wouldn't be much reason to use it in the first > place anyway. Maybe, but it should be safe to allow comparing a .ptr with another pointer, so long as .ptr is not dereferenced. So comparisons are fine, dereference should be disallowed, and copying/escaping .ptr disallowed. I expect this may be worth implementing to limit code breakage better than disallowing .ptr entirely. --
