lua-users home
lua-l archive

Re: nil semantics in Lua

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


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

AltStyle によって変換されたページ (->オリジナル) /