lua-users home
lua-l archive

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


On 12 October 2012 02:59, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> It'd be however much better if those functions returned the line number
>> as their 3-rd return value. Then all the trickery wouldn't be necessary.
>
> The thing is that the Lua core throws a string as the error.
> It could throw a table instead, but it'd complicate matters...
>

That would be great!

Having an 'official' lua error table format would be most beneficial.
Just give them a __tostring that spits out something in the current
string format...

D