exceptions vs error codes

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 10 09:57:49 PDT 2016


On Sunday, 10 July 2016 at 16:47:31 UTC, Chris Wright wrote:
> You do need a try/catch in every annotated function to catch 
> runtime exceptions like OutOfMemoryError.

as a side note: it is even not guaranteed that one *can* catch 
Error. and it is plainly wrong to try to continue execution after 
that, as program is in undefined state.


More information about the Digitalmars-d mailing list