[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [LuaJIT] ffi work if not a 'local'
- From: sduclos <sduclos.cairo@...>
- Date: Sat, 7 Jan 2012 12:13:08 -0500
Hi,
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. http://luajit.org/
JIT: ON CMOV SSE2 SSE3 AMD fold cse dce fwd dse narrow loop abc fuse
> local ffi = require("ffi")
> print(ffi)
nil
> 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
Thanks,
Sylvain.