Re: [perl #60044] [BUG?] rethrow just throwing?

2008-11-13 Thread Allison Randal
Martin D Kealey wrote: What about keeping track of where the exception was originally created? If we have lazy exceptions, then knowing where the fault they represent was detected is probably more important than were (exactly) it was triggered. Or does this all amount to the same thing? Is an

Re: [perl #60044] [BUG?] rethrow just throwing?

2008-10-28 Thread Martin D Kealey
On Fri, 24 Oct 2008, Allison Randal wrote: > Will Coleda wrote: > > Allison Randal wrote: > > > ...you expect 'rethrow' to keep the stack trace of the original 'die'? > > Yes. > > The way to do this is to add stack trace information to the Exception's > 'stacktrace' attribute when the exception is

Re: [perl #60044] [BUG?] rethrow just throwing?

2008-10-27 Thread Allison Randal
Patrick R. Michaud wrote: On Fri, Oct 24, 2008 at 12:18:40PM -0700, Allison Randal wrote: (I suppose technically we should stop calling this a "stack trace" since it's not a stack. But "return continuation chain trace" is just too verbose.) "backtrace" Exactly the word I was looking for.

Re: [perl #60044] [BUG?] rethrow just throwing?

2008-10-25 Thread Patrick R. Michaud
On Fri, Oct 24, 2008 at 12:18:40PM -0700, Allison Randal wrote: > (I suppose technically we should stop calling this a "stack trace" since > it's not a stack. But "return continuation chain trace" is just too > verbose.) "backtrace" Pm

Re: [perl #60044] [BUG?] rethrow just throwing?

2008-10-24 Thread Will Coleda
On Fri, Oct 24, 2008 at 3:18 PM, Allison Randal <[EMAIL PROTECTED]> wrote: > Will Coleda wrote: >> >> Allison Randal wrote: >>> >>> ...you expect 'rethrow' to keep the stack trace of the original 'die'? >> >> Yes. > > The way to do this is to add stack trace information to the Exception's > 'stackt

Re: [perl #60044] [BUG?] rethrow just throwing?

2008-10-24 Thread Allison Randal
Will Coleda wrote: Allison Randal wrote: ...you expect 'rethrow' to keep the stack trace of the original 'die'? Yes. The way to do this is to add stack trace information to the Exception's 'stacktrace' attribute when the exception is first thrown, and print that out for an unhandled excep

Re: [perl #60044] [BUG?] rethrow just throwing?

2008-10-24 Thread Mark J. Reed
On Fri, Oct 24, 2008 at 11:21 AM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Thu, Oct 23, 2008 at 08:04:41PM -0700, Allison Randal wrote: >> >> I don't understand the problem. Is it that you expect 'rethrow' to keep >> the stack trace of the original 'die'? > > ...this is what I would expec

Re: [perl #60044] [BUG?] rethrow just throwing?

2008-10-24 Thread Patrick R. Michaud
On Thu, Oct 23, 2008 at 08:04:41PM -0700, Allison Randal wrote: > > I don't understand the problem. Is it that you expect 'rethrow' to keep > the stack trace of the original 'die'? ...this is what I would expect. If I catch and then rethrow an exception, I'd expect the stack trace to continue t

Re: [perl #60044] [BUG?] rethrow just throwing?

2008-10-24 Thread Will Coleda
-- Will "Coke" Coleda On Oct 23, 2008, at 23:05, "Allison Randal via RT" <[EMAIL PROTECTED] > wrote: Will Coleda (via RT) wrote: I would expect both of these programs to output the same thing, but it looks like rethrow is generating the same output that throw would here. What is the d

Re: [perl #60044] [BUG?] rethrow just throwing?

2008-10-23 Thread Allison Randal
Will Coleda (via RT) wrote: I would expect both of these programs to output the same thing, but it looks like rethrow is generating the same output that throw would here. What is the difference supposed to be between these two ops? The two ops are intentionally almost entirely the same. The o

[perl #60044] [BUG?] rethrow just throwing?

2008-10-21 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #60044] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60044 > I would expect both of these programs to output the same thing, but it looks like rethrow