[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: state of the Lua nation on resource cleanup
- From: Sam Roberts <vieuxtech@...>
- Date: Tue, 20 Jan 2009 17:35:32 -0800
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.