> Could anyone point me to where the code generator emits the implied
> pairs(t) in "for k,v in t do"? It doesn't seem to actually call
> pairs()...
No. It uses "next". Look for
case OP_TFORPREP: { /* for compatibility only */
in lvm.c (the virtual machine)
--
Wim