@trust is an encapsulation method, not an escape

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 6 14:21:36 PST 2015


On 2/6/2015 7:14 AM, Wyatt wrote:
> The current @trusted semantics (and accompanying politics) make it exceedingly
> clear that @safe is meaningless for anything beyond trivial, one-off tools that
> will never receive maintenance.

You are correct in how @trusted is currently (mis)used in Phobos. We aim to fix 
this.

@trusted must provide a safe interface. No exceptions. Yes, that requires review 
of @trusted code by someone who thoroughly understands this, but there's no 
other way.



More information about the Digitalmars-d mailing list