lua-users home
lua-l archive

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


I try to track progress of the two method in lvm.c:

- math.pow(2,2)
OP_VARARGPREP
OP_GETTABUP
OP_GETFIELD
OP_LOADI
OP_TAILCALL -> luaD_call -> math_pow
OP_RETURN1

- 2^2
OP_VARARGPREP
OP_LOADI
OP_RETURN
OP_RETURN1

"2^2" have NOT went into OP_TAILCALL, and also OP_POW. 
So strange...

Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> 于2020年7月13日周一 上午8:45写道:
> > stdin:1: 'end' expected near '<\25>' ".
> This looks strange. If \25 is ASCII(0x25) then it's percent sign.

It's 25 decimal, not hex. So ^W.


--
龙的传人