ref is unsafe
Artur Skawina
art.08.09 at gmail.com
Thu Jan 3 02:23:54 PST 2013
On 01/03/13 00:06, 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.
extern(C) does not imply extern.
And for extern functions -- @safe and @trusted are equivalent, unless this
makes a difference for name mangling, which it a) shouldn't, b) already
does not for the extern(C) case.
artur
More information about the Digitalmars-d
mailing list