Skip to Content.
Sympa Menu

freetds - RE: [freetds] tdoParseConnectString

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] tdoParseConnectString
  • Date: Thu, 3 Apr 2003 11:20:56 -0500

> 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.

Why?

> 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.


--jkl


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.





Archive powered by MHonArc 2.6.24.

Top of Page