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

Re: [RFC] Replacement for "assert" in the libraries

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: Wed, 18 Jun 2008 11:45:49 -0400

On Wed, 2008-06-18 at 04:40 +0200, Vincent Lefevre wrote:
> On 2008-06-17 19:13:22 -0700, David Glasser wrote:
> > Doesn't help. (Return types.)
> Hmm... I forgot the return. Now, even without considering assertions,
> there's a problem: how does Subversion's standard error reporting
> mechanism can work with void functions?

We don't write a void function if it might return an error.

However, we do have some functions (typically string functions) which
always work if passed valid inputs. Some of these are the most common
places for assertion failures because the definition of "valid input" is
kind of picky.

To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-06-18 17:46:29 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.