Re: Toward an omnibus Perl 6 Exceptions RFC, v0.1.
[email protected] (Peter Scott) Wed, 16 Aug 2000 20:38:42 -0700
| Newsgroups | perl.perl6.language.errors |
|---|---|
| Message-ID | <[email protected]> |
At 09:14 PM 8/16/00 -0600, Tony Olekshy wrote: >Jonathan Scott Duff wrote: > > > > 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? > >The basic problem is that the stack traceback at the time of catching >is not the same as the stack traceback at the time of throwing, which >may be not be the same as the stack traceback at the time the exception >object was created. > >Once you've started unwinding, the original context gets lost. We're >working on a couple mechanisms to keep (some) historic context around, >while unwinding, for debugging purposes. Actually, according to the documentation for caller(), it should do what I want. It just doesn't yet. -- Peter Scott Pacific Systems Design Technologies