nothrow function callbacks in extern(C) code - solution
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jun 21 17:23:07 PDT 2014
On 6/20/14, 3:14 AM, Rainer Schuetze wrote:
> We either have to be more conservative with annotating OS functions or
> relax the guarantees of nothrow or @nogc. Both alternatives are not very
> compelling.
Callbacks passed into OS/clib functions are never supposed to throw so
we must annotate them all with nothrow. C functions are never designed
under the assumption callbacks may throw. -- Andrei
More information about the Digitalmars-d
mailing list