Jonathan Scott Duff wrote:
> 
> 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';

As currently promulgated in RFC 88, this would throw a Try::Except
exception with message 'MyFoo'.  If you want throw MyFoo->New(...)
you have to say so.

RFC 88 takes this approach so people writing simple scripts can keep
on saying throw "Can't open file $file." without having to get into
the details of exception objects at all.  Easy easy, hard possible.

Yours, &c, Tony Olekshy

Reply via email to