@trusted considered harmful
Michel Fortin
michel.fortin at michelf.ca
Fri Jul 27 20:24:58 PDT 2012
On 2012-07-28 00:08:28 +0000, "David Nadlinger" <see at klickverbot.at> said:
> @trusted in its current form needs to go. Its design is badly broken,
> as it leaks implementation details and encourages writing unsafe code.
@trusted is a dangerous thing. Since the first time I tried to use it,
I always found it troublesome. I agree it needs to be a scope. And for
backward compatibility, a @trusted function should be exactly the same
as a @safe function where the whole body is wrapped in a @trusted scope.
--
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca/
More information about the Digitalmars-d
mailing list