checkedint call removal

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 30 11:23:08 PDT 2014


"John Colvin"  wrote in message news:oyzjykmvgzdzkprzujzx at forum.dlang.org...

> > Don't use -release.
>
> haha yeah, or that!

debug enforce(...) would also work just fine.  It depends if you're happy 
with leaving bounds checking enabled, if you want fine-grained control over 
which checks get enabled, if your code needs to be nothrow, etc

I often write quick scripts that rely on bounds checking and assertions to 
reject incorrect command line args.  While this is technically an abuse of 
assert, it doesn't matter because I never use -release on them. 



More information about the Digitalmars-d mailing list