exceptions vs error codes

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 13 02:53:31 PDT 2016


On Wednesday, 13 July 2016 at 09:12:56 UTC, Ola Fosheim Grøstad 
wrote:
> Undefined by the language is not the same as unknown in a 
> concrete instance. It simply means that such constructs are not 
> part of the specified language.

"program is in undefined state"? that is what written in the 
specs. and it means exactly that: *anything* can be messed up, 
including druntime internal things. the only thing one can really 
do here is invoke "exit" syscall as fast, as possible, or 
dereference zero pointer to get core dump.


More information about the Digitalmars-d mailing list