Program logic bugs vs input/environmental errors

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 29 05:04:32 PDT 2014


On 9/29/14 7:54 AM, Walter Bright wrote:
> On 9/29/2014 4:51 AM, Steven Schveighoffer wrote:
>> What about:
>>
>> File f;
>> f.open(null);
>>
>> Is that an environmental error or User error?
>
> Passing invalid arguments to a function is a programming bug.
>

That throws an exception. My point exactly.

-Steve


More information about the Digitalmars-d mailing list