@trust is an encapsulation method, not an escape

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 5 15:49:04 PST 2015


On 2/5/15 3:43 PM, Dicebot wrote:
> The fact that @trusted is contained in small block doesn't mean rest of
> @safe function doesn't need to be reviewed. Only difference is "review
> all manually" vs "review all manually with some help of compiler".

As Steve and others have shown, unsafe code under the disguise of 
@trusted affects everything. You are fostering an illusion. -- Andrei



More information about the Digitalmars-d mailing list