lua-users home
lua-l archive

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


On Tue, Jan 20, 2009 at 3:52 PM, Petite Abeille <petite_abeille@mac.com> wrote:
> On Jan 21, 2009, at 12:46 AM, Sam Roberts wrote:
>> Lack of non-string errors is one.
> What about... error( { type = 'MyVeryFancyErrorClassType' } )?

That would be sweet.

> One can pass
> anything to error, no?

No.

% lua
Lua 5.1.2  Copyright (C) 1994-2007 Lua.org, PUC-Rio
> error({type="This"})
(error object is not a string)

Sam

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