lua-users home
lua-l archive

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


On Tue, Jan 20, 2009 at 4:43 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> (error object is not a string)
>
> This is a message from lua.c. The Lua core does handle non-string errors
> just fine.

Oops! Sorry, you're right.

> a, b = pcall(function () error({type="This"}) end)
> = a
false
> = b
table: 0x64c100
> return  b.type
This




-- 
Ars longa, vita brevis, occasio praeceps, experimentum periculosum,
iudicium difficile.