lua-users home
lua-l archive

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


On Sat, 5 Feb 2005 17:14:03 +0100, PA <petite.abeille@gmail.com> wrote:
> 
> On Feb 05, 2005, at 15:51, Javier Guerra wrote:
> 
> > in short, i'd like that
> > (nil)[anything] == nil
> > instead of failing
> >
> > does anybody object to this?
> 
> Yes. Strongly. There is a bare minimum amount of sanity that the Lua VM
> should rightly expect. It already way to lax in many aspects.
> 

It's also easy to emulate with (tbl or {})[field], if you really need
this odd behavior in a particular circumstance.

Ben