Re: Exceptions and Objects
[email protected] (Jonathan Scott Duff) Mon, 14 Aug 2000 11:02:23 -0500
| Newsgroups | perl.perl6.language.flow |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Aug 13, 2000 at 05:25:01PM -0600, Tony Olekshy wrote: > 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. So what happens when someone writes throw 'MyFoo'; ? Is that taken to be a class name? Is it a string that's auto-converted into an Exception class somehow? Or would that be an illegal construct? -Scott -- Jonathan Scott Duff [email protected]