[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: require("ffi")
- From: David Given <dg@...>
- Date: Mon, 11 Apr 2011 23:10:13 +0100
Maybe it's late, maybe I'm just not seeing something, but right now this
is really puzzling me.
This is with luajuit beta6. Each of these is a new instance of the Lua
interpreter.
> require("ffi")
> =ffi
nil
Fair enough, this is a new style module which returns the module
instance rather than installing it in the global environment.
> ffi = require("ffi")
> =ffi
table: 0xb76e4a58
Yup, that works. But, because I'm an old-school Lua programmer, I don't
like globals, so I try to put this in a local variable...
> local ffi = require("ffi")
> =ffi
nil
Huh?
Does anyone know what's going on here?
--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "I have a mind like a steel trap. It's rusty and full of dead mice."
│ --- Anonymous, on rasfc
Attachment:
signature.asc
Description: OpenPGP digital signature