[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: nil semantics in Lua
- From: Petite Abeille <petite_abeille@...>
- Date: Mon, 01 Jun 2009 09:00:12 +0200
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.