Can I assert in nothrow functions ?

bearophile bearophileHUGS at lycos.com
Sat Oct 1 11:49:44 PDT 2011


Timon Gehr:

> nothrow is part of the function interface. You should mark your 
> functions with nothrow when you want to explicitly guarantee to the 
> clients of your function that it won't throw an exception.

nothrow also allows some better optimization of the code.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list