Generic memory allocation in D

Walter Bright newshound2 at digitalmars.com
Mon Mar 4 09:53:17 UTC 2024


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;
     }


More information about the Digitalmars-d mailing list