in/out with -release
Jonathan M Davis
jmdavisProg at gmx.com
Sat Mar 5 13:54:08 PST 2011
On Saturday 05 March 2011 05:30:23 Andrej Mitrovic wrote:
> On 3/5/11, bearophile <bearophileHUGS at lycos.com> wrote:
> > Jonathan M Davis:
> >> Asserts are for
> >> debugging, testing, and verifying code when developing, not for code
> >> which is
> >> released.
> >
> > If you take a look at the dmd compiler, it's released with asserts in,
> > and they give all those nice error messages I put in Bugzilla :-)
> >
> > Bye,
> > bearophile
>
> Hmm. Are those shown when compiling a file with -debug? Or do I need
> to compile DMD itself in debug/nonrelease mode to activate those error
> messages?
You would need to compile dmd in debug mode if you wanted it to have assertions
enabled, the same as any other C or C++ program in existence. That's the way
that C/C++'s assert library works.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list