Article

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

Re: Exceptions vs Error codes

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


> > A programmer must explicitly dismiss an exception, while an error code
> > can be ignored by default.
> 
> Exceptions can be ignored too. 

Only through "try {stuff} except end; "; otherwise, they will be
*visible*, and execution will be *aborted*. With ignored error codes,
the only warning you get is that stuff doesn't happen, or data loss, or
application crashes, etc.

Continuing in the face of errors would be a lot worse. Which is the default situation for error return codes; you must explicitly, actively, check for them.
-- Barry
FYI: Attachments and HTML formatted text are not indexed
 
 
Originally created by
Tamarack Associates
Mon, 20 May 2024 00:19:07 UTC
Copyright © 2009-2024
HREF Tools Corp.