Andrej Mitrovic:

> Right. That's why I need it in this case, since the library can return
> null at runtime due to user or even (audio) hardware errors.

So in your case enforce is OK.
(In general, I suggest to use D design by contract a lot (with asserts)).

Bye,
bearophile

Reply via email to