DIP23 draft: Fixing properties redux
Jonathan M Davis
jmdavisProg at gmx.com
Tue Feb 5 13:43:39 PST 2013
On Tuesday, February 05, 2013 14:05:24 Steven Schveighoffer wrote:
> I think the point about @safe code is moot, aren't pointers disallowed in
> safe code anyway?
Goodness no. It's pointer arithmetic which is disallowed. Pointers themselves
are perfectly safe as long as you just pass them around or dereference them
(which would include calling functions on them). For instance, the result of
in on an AA is a pointer to the object, and that's @safe.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list