lua-users home
lua-l archive

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


Geoff Leyland wrote:
> Here's a difference, but not a bug:
>
> $ lua
> Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> > print(#{1, nil, 3})
> 3
>
> $ luajit-2.0.0-beta1
> LuaJIT 2.0.0-beta1 -- Copyright (C) 2005-2009 Mike Pall. http://luajit.org/
> JIT: ON CMOV SSE2 SSE4.1 fold cse dce fwd dse narrow loop fuse
> > print(#{1, nil, 3})
> 1

Implementation defined behavior. Results may vary even more in the
future.

--Mike