lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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