Article

From:
To:
Kristofer Skaug
Subject:
Re: Exceptions vs Error codes
Newsgroup:
borland.public.delphi.objectpascal

Re: Exceptions vs Error codes

In article <3b7d9f9e_2@dnews>
	"Kristofer Skaug" <✉skaug.demon.nl> wrote:

> "Barry Kelly" <✉eircom.net> wrote in message
> news:✉4ax.com...
> > 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
Tue, 07 Feb 2023 05:12:32 UTC
Copyright © 2009-2023
HREF Tools Corp.