[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C arrays as Lua tables
- From: Flemming Madsen <lua@...>
- Date: Thu, 1 Mar 2012 19:45:24 +0100
This is also similar to alien.array(type, len[, buf])
Of course the same argument as with LuaFFI applies, as one would have
to rip out the libffi stuff to only have buffers and arrays ...
/Flemming
On Mon, Feb 27, 2012 at 1:28 AM, Dimitris Papavasiliou
<dpapavas@gmail.com> wrote:
>> Out of curiosity, how does this compare to LuaFFI's [1] array and structure
>> manipulation?
>
> I'm not familiar with LuaFFI but from what I understand from the
> description its purpose is to allow a programmer to mix Lua and C
> code. LuaFFI therefore has a much larger scope but it inevitably
> introduces all of C's complexity into Lua to achieve that.