Re: Exceptions and Objects

[email protected] (Jonathan Scott Duff) Mon, 14 Aug 2000 11:10:37 -0500
Newsgroups perl.perl6.language.flow
Message-ID <[email protected]>
On Sun, Aug 13, 2000 at 10:51:24PM -0700, Peter Scott wrote:
> Could be.  I'd be interested in seeing non-OOP proposals that do what I 
> want exceptions to do, I have a hard time imagining one.

Well, what is it that you want exceptions to do?

> >What does it mean for an exception to have semantics?  When an exception
> >is thrown does something special happen whether it's caught or not?
> 
> Yes.   In my proposal, if it's caught, the catcher examines the exception 
> object.  If it isn't caught, the program dies with the message attribute as 
> text.

This doesn't show that the exception object itself has any semantics.
If the catcher examines, the object is being passive.  Does the object
*do* anything?

-Scott
-- 
Jonathan Scott Duff
[email protected]