The "@safe vs struct destructor" dilemma

Dicebot public at dicebot.lv
Sat Apr 12 16:08:27 PDT 2014


On Saturday, 12 April 2014 at 22:02:26 UTC, Nick Sabalausky wrote:
> *Now* doStuff can be marked @safe and enjoy all the special 
> checks that @safe provides.

_and_ is terribly wrong because it is not guaranteed to be @safe 
for all use cases, braking type system once used anywhere but 
"special" functions.

I agree that @trusted functions should be as small as possible 
but they still be self-contained.



More information about the Digitalmars-d mailing list