Re: RFC 63 (v4) Exception handling syntax
[email protected] (Ilya Martynov) Thu, 24 Aug 2000 19:54:58 +0400 (MSD)
| Newsgroups | perl.perl6.language.errors |
|---|---|
| Message-ID | <[email protected]> |
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. -- Ilya Martynov AGAVA Software Company, http://www.agava.com