Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Policy on debug codes



Nguyen Vu Hung writes:

 > After all bugs are fixed, of course TRACE() can be removed.

Since you can't prove that all bugs are fixed, you can't remove
TRACE() ever. :-)

In Perl you can of course define TRACE() to be a do nothing function,
and it should get optimized away (even Emacs Lisp does that).  Your
compile time will increase slightly, but if that matters you're doing
something else wrong anyway -- it should always be possible to keep
compile time down to a negligible fraction of total time in production
use, and a 10% increase in negligible is still negligible.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links