[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: Branko ─îibej <brane_at_xbc.nu>
Date: Sat, 14 Jun 2008 01:48:01 +0200

David Glasser wrote:
> I do think that there is value in having a way of assert/aborting from
> anywhere in the code (not just svn_error_t-returning functions) which
> can't be ignored accidentally by forgetting to write SVN_ERR and
> friends. Additionally, assert/abort generally gives good stack traces
> when run in gdb, whereas it's trickier to track down the source of our
> error objects.
>

We should rewrite everything in C++ and throw exceptions!

I'm almost serious. The trouble is that, when I tried compiling
Subversion as it is with a C++ compiler, I ran into a ton of problems,
not the least of which was using variables called "new" ... I estimate
that the code churn would be less than trivial.

-- Brane

---------------------------------------------------------------------
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-14 01:48:46 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.