Generic memory allocation in D
Walter Bright
newshound2 at digitalmars.com
Tue Mar 5 03:26:22 UTC 2024
On 3/4/2024 3:40 AM, Dom DiSc wrote:
> That's a very weak argument.
> Normally if one calls a function, the if-part is where the result is worked with
> (the main path) and the else part is for error-handling. This is especially true
> for ReadFile().
> That in this specific case only an error handling part exists is the exception,
> not the rule.
Don't think I haven't struggled with this question.
Consider also that the convention for system calls is 0 is success and anything
else is an error.
More information about the Digitalmars-d
mailing list