checkedint call removal

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 31 14:47:57 PDT 2014


On 7/31/14, 2:11 PM, Daniel Gibson wrote:
> Maybe, besides enforce() and assert() there could be a check() that:
> * returns true if the condition is true
> * throws an exception in debug mode if the condition is false
> * returns false in release mode if the condition is false
> could be introduced.

Yah, an extra non-magic function that performs the "mild assert" 
discussed in this thread would be a possibility. -- Andrei


More information about the Digitalmars-d mailing list