Regarding nothrow and @safe

Sean Eskapp eatingstaples at gmail.com
Sat Aug 20 09:41:01 PDT 2011


Does nothrow mean the function itself does not through exceptions, or that the
function body, as well as any called functions, do not throw? I wonder because
allocating new memory inside a @safe nothrow function works, even though I'm
used to "new" allocations throwing exceptions or Out-Of-Memory errors.


More information about the Digitalmars-d-learn mailing list