"John Colvin"  wrote in message news:oyzjykmvgzdzkprzu...@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.

Reply via email to