@trust is an encapsulation method, not an escape

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 5 16:11:17 PST 2015


On Thursday, 5 February 2015 at 23:49:05 UTC, Andrei Alexandrescu 
wrote:
> 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

Steve has shown exactly the opposite, proving quite some of my 
points ;) But it is not uncommon to see what one wants to see in 
identical piece of information.


More information about the Digitalmars-d mailing list