Using onOutOfMemoryError in C wrappers

Per Nordlöw per.nordlow at gmail.com
Wed Mar 24 07:58:22 UTC 2021


When wrapping C code that tries to allocate memory resources via 
functions such as

     X* X_create();

should one call `onOutOfMemoryError();` upon null return?

Making more D wrappers `nothrow @nogc`.


More information about the Digitalmars-d-learn mailing list