lua-users home
lua-l archive

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


Hi,

I'm working on luadec, but got confused about OP_VARARG in lua-5.1.4.
I think the comment is wrong, that should be R(A), R(A+1), ...,
R(A+B-2) = vararg

lopcodes.h line 210
OP_VARARG/*	A B	R(A), R(A+1), ..., R(A+B-1) = vararg		*/


lvm.c line 751
      case OP_VARARG: {
        int b = GETARG_B(i) - 1;
..........
        for (j = 0; j < b; j++) {