checkedint call removal

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 28 18:07:41 PDT 2014


On 7/28/2014 1:49 PM, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> You might want to assert() that you have enough headroom in a statically
> allocated buffer when testing. Say you assert that the buffer is never more than
> 50% full for normal loads. You obviously don't want the -release build to make
> such an assumption!

You're misunderstanding and misusing assert.

'assume' is completely redundant with 'assert'.

To have different debug builds, use debug statements.


More information about the Digitalmars-d mailing list