lua-users home
lua-l archive

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


On 11 April 2011 23:10, David Given <dg@cowlark.com> wrote:
> Maybe it's late, maybe I'm just not seeing something, but right now this
> is really puzzling me.
>

>> local ffi = require("ffi")
>> =ffi
> nil
>

Each line in the interpreter is loaded as a separate chunk, local
variables are local to that line only. The second line accesses the
global ffi.

Regards,
Matthew