← Back to team overview

zorba-coders team mailing list archive

Re: [Merge] lp:~paul-lucas/zorba/bug-1147518 into lp:zorba

 

Here's the e-mail I originally complained about this:

From: "Paul J. Lucas" <paul@xxxxxxxxxxxxx>
Subject: diagnostics/util_macros.h
Date: Thu, 30 Jun 2011 10:34:50 -0700
Message-Id: <448A6241-B258-40F2-BCB2-498FDE95CEB8@xxxxxxxxxxxxx>
To: zorba-coders <zorba-coders@xxxxxxxxxxxxxxxxx>

Markos -

Why did you add this file and these macros?  Part of the point of reworking exceptions was to get rid of all those ugly ZORBA_ERROR macros -- and here you are putting them back.

It's also not clear to anybody what they do.  If I see:

	RAISE_ERROR( ... )

I don't know what it does.  Does it print an error message and call abort?  Does it throw an exception?

The reason I designed the current exception mechanism the way it is is precisely to leave the "throw" in the code explicitly visible so anybody reading the code knows that an exception is being thrown and that execution will not continue past that line.

- Paul
-- 
https://code.launchpad.net/~paul-lucas/zorba/bug-1147518/+merge/158449
Your team Zorba Coders is subscribed to branch lp:zorba.


References