|
Dirk,
> You can't change the way '__pairs' is called without changing 'pairs'
> itself. The manual states: "pairs (t) ... If t has a metamethod
> __pairs, calls it with t as argument." I see no way of implementing
> your proposal that will not involve a change to "pairs (t[,opt]) ...
> If t has a metamethod __pairs, calls it with t and opt as arguments."
Does pairs() have exclusive rights on calling __pairs()? (Obviously no).
Best regards,
--
DoubleF