[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: First class : (was Re: Regarding the name 'pairs')
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 16 Sep 2009 08:43:56 -0300
> I'm also confused about the need for pairs/ipairs metamethods.
There is no *need* for pairs/ipairs metamethods just as there is no need
for pairs/ipairs functions. (But there is a need for next and # so that
pairs/ipairs can be implemented.)
> (1) acknowledge that pairs/ipairs pertain only to tables (several
> people have done this already); and
But tables are used to implement objects and those may want different behaviors.