Kristofer Skaug
Re: Exceptions vs Error codes

Re: Exceptions vs Error codes

In article <3b7d9f9e_2@dnews>
	"Kristofer Skaug" <✉> wrote:

> "Barry Kelly" <✉> wrote in message
> news:✉
> > And how are you going to perform this differently in the absence of
> > exceptions; that is, using a motley collection error codes and ragbag
> > global variables, scattered hither and thither, every second statement
> a
> > check for error conditions?
> Excuse me, but error codes and local variables are not inherently
> 'motley' or 'ragbag'.

My point is that exceptions are unified; they all descend from
Exception, they have a standardized handling mechanism.

I was just trying to use some literary devices to illustrate their varying pedigrees, and their inherent disunity.
No offence intended.
> Not sure where you have the 'globals' from.

Thread-local global variables; IOResult, GetLastError, while functions,
are effectively read-only global variables; consider also SetLastError.

You still haven't answered the question.
-- Barry
FYI: Phrase searches are enclosed in either single or double quotes
Originally created by
Tamarack Associates
Fri, 22 Sep 2023 01:55:10 UTC
Copyright © 2009-2023
HREF Tools Corp.