lua-users home
lua-l archive

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


>  > t=new_test()
>  > =t:func(3)
> 0: self
> 1: self
> 2: self
> 3: self
> 4: self

So the debug info is corrupted... Can you add this piece of code in
luaI_registerlocalvar (lparser.c:144, just before the return) and
see what it prints?

  { int i; for (i=0; i<f->nlocvars; i++)
    printf("%d: %s  ", f->locvars[i].varname; printf("\n"); }

-- Roberto