Re: Exceptions and Objects
[email protected] (Tony Olekshy) Sun, 13 Aug 2000 17:25:01 -0600
| Newsgroups | perl.perl6.language.flow |
|---|---|
| Organization | Avra Software Lab Inc. |
| Message-ID | <[email protected]> |
Jonathan Scott Duff wrote: > > I've read this thread with some interest and I'm puzzled by something. > Why are "objects" and "exceptions" always mentioned in the same > breath? Does one need objects to have exceptions? > > Could someone enlighten me or point me at relevant references? RFC 88 allows any Perl datum to be used as an exception. RFC 96 proposed a standard exception object base class. Given such a base class, exception handling can do fancier things based on instances of derivatives of the base class, and simpler things when an exception is not such a derivative. Yours, &c, Tony Olekshy