lua-users home
lua-l archive

Re: Slight discrepency in the documentation for

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


> next -> function: 00324328
> pairs{} -> function: 00324FD8 table: 0032F7A8 nil
That 00324328 is not the same as 00324FD8 does not mean that they're
not the same C function. In fact, they are; more precisely they're just
different (but equivalent) closures of the same C function.
> This patch both the advantage and the disadvantage that if the value
> of 'next' is changed, then pairs(t) will see that change.
This may or may not be the right thing or even a good thing: if you mess 'next'
up, should pairs stop working?
--lhf

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