ref is unsafe
David Nadlinger
see at klickverbot.at
Wed Jan 2 15:53:56 PST 2013
On Wednesday, 2 January 2013 at 23:08:14 UTC, H. S. Teoh wrote:
> All extern(C) functions must be @system by default. It makes no
> sense to
> allow a @safe extern(C) function, since there is no way for the
> compiler
> to verify anything at all. The best you can do is @trusted.
@trusted shouldn't be a part of the function signature anyway,
see
http://forum.dlang.org/thread/blrglebkzhrilxkbprgh@forum.dlang.org.
Somebody up for creating a DIP on that?
David
More information about the Digitalmars-d
mailing list