lua-users home
lua-l archive

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


That is the code. It's evaulating the result of (_G and tonumber or assert) and then calling that with ('', '')

Ah hah! I know what's wrong. The reason this is happening is "or" has a higher precendence than "and", so it's turning into (_G and (tonumber or assert)), which becomes (_G and assert), which becomes (assert)('','').

On May 10, 2013 2:24 PM, "Vadim Peretokin" <vperetokin@gmail.com> wrote:
Where is this code at?