Re: Toward an omnibus Perl 6 Exceptions RFC, v0.1.
[email protected] (Tony Olekshy) Tue, 15 Aug 2000 23:59:50 -0600
| Newsgroups | perl.perl6.language.errors |
|---|---|
| Organization | Avra Software Lab Inc. |
| Message-ID | <[email protected]> |
Jonathan Scott Duff wrote:
>
> On Tue, Aug 15, 2000 at 05:14:56PM -0700, Peter Scott wrote:
> >
> > I want: exceptions to contain 'file' and 'line' attributes which
> > are arrays that get a location pushed on every time an exception
> > bubbles up through a scoping level.
>
> 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";
> }
Yawn. That's the way RFC 88 v1 does it. Check it out.
We are trying to fix that problem. Nature abhors globals.
Yours, &c, Tony Olekshy