Re: Toward an omnibus Perl 6 Exceptions RFC, v0.1.
[email protected] (Jonathan Scott Duff) Wed, 16 Aug 2000 14:01:30 -0500
| Newsgroups | perl.perl6.language.errors |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 16, 2000 at 11:46:12AM -0700, Peter Scott wrote:
> At 12:10 AM 8/16/00 -0500, Jonathan Scott Duff wrote:
> >Why not have a special array that acts as an exception stack and each
> >exception knows what file/line/whatever? Then you can get both behaviors
> >with a simple for loop:
> >
> > for (@PERL::EXCEPTIONS) {
> > print $_->file, "\t", $_->line, "\n";
> > }
>
> Because there isn't a stack of exceptions; I'm talking about tracking the
> movement of a single exception.
>
> This feature gets repeatedly confused with the RFC 88 exception stacking
> feature.
If true, then perhaps this feature needs more explanation :-)
I can almost see what you're talking about but not quite. It sounds
like you want caller() info available to the exception handler ... but
isn't it?
-Scott
--
Jonathan Scott Duff
[email protected]