Encapsulating trust

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 2 12:11:48 PDT 2014


On 9/2/2014 10:11 AM, Daniel Murphy wrote:
> Yes, that function is more easily verifiable for @safety, because any violation
> _must_ be inside the @trusted function.

The 'pure' attribute helps with that.


> If the @safe violating helpers were
> used, main would effectively be @trusted and more lines would need to be reviewed.

Yes, that says it better than I did.



More information about the Digitalmars-d mailing list