lua-users home
lua-l archive

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


Just to report that LuaJIT-2.0.0 (beta9 & git) work if 'ffi' is not a
'local' variable

The tutorial say:

> local ffi = require("ffi")

but a printf(ffi) return 'nil'

However if 'local' is absent ffi work as advertise:

$  ./luajit
LuaJIT 2.0.0-beta9 -- Copyright (C) 2005-2011 Mike Pall.
JIT: ON CMOV SSE2 SSE3 AMD fold cse dce fwd dse narrow loop abc fuse
> local ffi = require("ffi")
> print(ffi)
> ffi = require("ffi")
> print(ffi)
table: 0x405faf18

No big deal really, but I haven't seen this reported ..

This is beta-9 on Utuntu-11.10 AMD64 and Android

Same behavior using source from git trunk