[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (beta) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 23 Oct 2014 15:02:31 -0200
> On 23 October 2014 11:41, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>
> > However, if "__tostring" has been defined, no traceback is added.
> > Are you willing to share the reasoning behind this with us?
> >
>
> The idea is that the object would be an 'error object', who's __tostring()
> might be a detailed stack trace.
> This means that you can forge useful tracebacks from otherwise weird code
> (e.g. a stack of callbacks).
Exactly. Once you want to control the error message, you better have
full control.
-- Roberto