On Saturday 05 March 2011 05:30:23 Andrej Mitrovic wrote: > On 3/5/11, bearophile <bearophileh...@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