Article

From:
To:
Pete d'Oronzio
Subject:
Re: Exceptions vs Error codes
Newsgroup:
borland.public.delphi.objectpascal

Re: Exceptions vs Error codes

"Pete d'Oronzio" <✉pdmagic.com> wrote in message
news:3b76fd23$1_2@dnews...
> I hadn't considered that fact that I'll be at the whim of those writing my
> libraries, but I suppose I could write wrappers if I decide to standardize
> one way or the other.  I've done that in most cases for portability anyway.

Sure, but you really want to wrap the entire VCL? ouch.
Look at the way error handling is done there. There's not much
consistency!
Particularly, if you're using WinAPI you'll be used to error codes.

> <snip> I don't think it's possible to decide to do
> it halfway and have maintainable code.  Seems like it must be one way or the
> other.

Quite certainly.

> I've tried to go back to June's newsgroup listings.  Can't get back that
> far.  I'll find an archive and see if I can find "Exceptions should be
> banned".

I was able to retrieve most of it at Google:

http://groups.google.com/advanced_group_search
Specifically, this does the trick regarding that specific discussion:
http://groups.google.com/groups?as_ugroup=borland.public.delphi.object pascal&as_usubject=Exceptions%20should%20be%20banned%3F
It's an interesting read FWIW.
Kristofer
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Fri, 29 Mar 2024 01:15:12 UTC
Copyright © 2009-2024
HREF Tools Corp.