[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: nil semantics in Lua
- From: Patrick Donnelly <batrick@...>
- Date: Mon, 1 Jun 2009 01:02:08 -0600
On Mon, Jun 1, 2009 at 1:00 AM, Petite Abeille <petite_abeille@mac.com> wrote:
>
> On Jun 1, 2009, at 7:53 AM, Vaughan McAlley wrote:
>
>> I agree it's sometimes useful to see if a value == nil. Could nil be
>> given an __eq metamethod?
>
> Yes, you can attach a metamethod to nil.
Yes, but it would be meaningless. See the manual.
--
-Patrick Donnelly
"Let all men know thee, but no man know thee thoroughly: Men freely
ford that see the shallows."
- Benjamin Franklin