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: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Wed, 09 Oct 2024 16:58:34 UTC
Copyright © 2009-2024
HREF Tools Corp.