Re: RFC 63 (v4) Exception handling syntax
[email protected] (Peter Scott) Thu, 24 Aug 2000 09:16:37 -0700
| Newsgroups | perl.perl6.language.errors |
|---|---|
| Message-ID | <[email protected]> |
At 07:54 PM 8/24/00 +0400, Ilya Martynov wrote: >PRL> Exceptions are objects belonging to some C<Exception> class. C<throw>ing >PRL> an exception creates the object; therefore, C<EXCEPTION> above is just a >PRL> class name (possibly including some C<::>). >PRL> >PRL> The C<exception> function is just syntactic sugar for creating a new >PRL> exception class;it merely amounts to C<@EXCEPTION::ISA = 'Exception'>. > >Often people want to create hierarchies of exception classes. In proposed >implementation 'exeption' keyword doesn't allow to create exception classes >subclassed from other exception classes. > >IMHO in such implementation this keyword will not be very usefull. From the beginning of the posting you're quoting: This RFC has been merged into RFC 88. The text of the last version prior to the merge is left below for archival purposes only. Anyone interested in browsing this for historical reasons probably has way too much time on their hands :-) -- Peter Scott Pacific Systems Design Technologies