Do we really need @unsafe?

bearophile bearophileHUGS at lycos.com
Tue Nov 10 16:02:28 PST 2009


Walter Bright:

> Furthermore, why would a safe module wish to expose unsafe functions? 
> Shouldn't the programmer instead be obliged to produce trusted functions 
> in it?

If what you say is right, then what's the purpose/advantage of using:
module foo;
@safe:

Instead of this?
module(safe) foo;

Bye,
bearophile



More information about the Digitalmars-d mailing list