checkedint call removal
H. S. Teoh via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 30 11:24:04 PDT 2014
On Wed, Jul 30, 2014 at 03:13:06PM -0300, Ary Borenszweig via Digitalmars-d wrote:
> On 7/30/14, 2:56 PM, Andrei Alexandrescu wrote:
[...]
> >Well to me "-release" is "I assume my program is correct, generate
> >the fastest code for it".
>
> I tried the program in debug mode in thousands of ways and apparently
> no assert triggers. So I'll just compile in release mode, release it
> and let anyone find bugs in it and allow to bypass any security or
> safety I put in my program with those "assert" statmenets, that would
> probably just take 1 nanosecond to execute anyway.
>
> Sounds really nice.
>
> (sorry for the sarcasm, removing assert is wrong to me)
If you want the check to always be there, use enforce, not assert.
T
--
Без труда не выловишь и рыбку из пруда.
More information about the Digitalmars-d
mailing list