[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: (nil)[anything] == nil (was Re: Accessing Table's table value from C++)
- From: Ben Sunshine-Hill <sneftel@...>
- Date: Sat, 5 Feb 2005 09:50:32 -0800
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