Generic memory allocation in D

Ogi ogion.art at gmail.com
Tue Mar 5 07:45:38 UTC 2024


On Monday, 4 March 2024 at 09:53:17 UTC, Walter Bright wrote:
> On 3/4/2024 12:06 AM, Dom DiSc wrote:
>> But why does it now return true on failure and false on 
>> success?
>> Isn't this exacly the bad re-definition of boolean you advised 
>> us not to use?
>
>
> It means I don't have to use ! in:
>
>     if (foo())
>     {
>         error();
>         return;
>     }

We really need to come up with one, standard way of reporting 
failure/success.


More information about the Digitalmars-d mailing list