[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: abort or assert?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-11-09 16:54:50 CET

Julian Foad <julianfoad@btopenworld.com> writes:

> In most of the places where we currently say:
>
> if (blah) abort();
>
> I feel we should be saying:
>
> assert(!blah);
>
> There may be some reasons to abort() in a few cases, such as to avoid
> possible data loss. If I prepare a patch to convert to assert() where
> it seems appropriate, perhaps someone could review it with this in
> mind.

I'm going to take the opportunity to learn something new, at the risk
of demonstrating a hole in my C knowledge.

What are the differences between these two approaches? You noted
"possible data loss". How so?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 9 16:57:36 2004

This is an archived mail posted to the Subversion Dev mailing list.