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
- Re: Toward an omnibus Perl 6 Exceptions RFC, v0.1. Jonathan Scott Duff
- Re: Toward an omnibus Perl 6 Exceptions RFC, v0.1... Tony Olekshy
- Re: Toward an omnibus Perl 6 Exceptions RFC, ... Jonathan Scott Duff
- Re: Toward an omnibus Perl 6 Exceptions RFC, v0.1... Peter Scott
- Re: Toward an omnibus Perl 6 Exceptions RFC, ... Jonathan Scott Duff
- Re: Toward an omnibus Perl 6 Exceptions R... Peter Scott
- Re: Toward an omnibus Perl 6 Exceptions R... Tony Olekshy
- Re: Toward an omnibus Perl 6 Exceptio... Peter Scott
- Re: Toward an omnibus Perl 6 Exceptions RFC, v0.1... Jonathan Scott Duff
- Re: Toward an omnibus Perl 6 Exceptions RFC, v0.1... Tony Olekshy
- Re: Toward an omnibus Perl 6 Exceptions RFC, ... Chaim Frenkel
- Re: Toward an omnibus Perl 6 Exceptions R... Peter Scott