exceptions vs error codes

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 13 02:12:56 PDT 2016


On Wednesday, 13 July 2016 at 09:04:20 UTC, ketmar wrote:
> On Wednesday, 13 July 2016 at 07:14:04 UTC, Max Samukha wrote:
>> Undefined does not imply corrupt.
>
> undefined means "undefined". there is nothing more to save, 
> nothing more to do, as you can't rely on a single bit. this 
> is... definition of undefined.
>
> relying on defined state with undefined behavior is not only 
> dangerous, it is plainly invalid.

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.



More information about the Digitalmars-d mailing list