Lowden, James K
LowdenJK at bernstein.com
Thu Apr 3 11:20:56 EST 2003
> From: ZIGLIO Frediano [mailto:Frediano.Ziglio at vodafoneomnitel.it]
> Sent: April 3, 2003 10:59 AM
> I think this comment is due to my assert remove...
Yes. :-) But I think your decision was correct.
> Personally I don't like assert that much.
> It should be removed from final
> compile. I think we should define another macro based on
> --enable-extra-checks instead of enabling always assert...
The assert() macro *is* removed in the "final" compile, if NDEBUG is
defined, at least on my system.
Assert is your friend. It provides information that segment faults don't.
It's a strong comment in the code about the programmer's assumptions. It
avoids the need to backtrack a runtime fault stemming from a bad assumption.
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.
More information about the FreeTDS