lua-users home
lua-l archive

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


> BTW: "2^8", will this this optimized by the interpreter, or
> should you rather write 256?

See for yourself:

% luac -l -p -
   u = u * 2^8 + s:byte(i)
^D
...
	1       [1]     GETGLOBAL       0 -1    ; u
	2       [1]     MUL             0 0 -2  ; - 256