lua-users home
lua-l archive

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

----- Original Message -----
From: Dimitris Papavasiliou
Date: 2/25/2012 4:18 PM
Hello all,

The attached archive contains a first version of a module that
essentially serves as a bridge between Lua and C arrays by exposing C
arrays (of all types) to Lua as tables with suitable index, newindex,
len and pairs/ipairs metamethods.  By itself this is probably of
little use in Lua but it should be quite useful as a base for other
modules or perhaps in the case that Lua is used as an extension
language for an application dealing with large matrix/vector data.

Out of curiosity, how does this compare to LuaFFI's [1] array and structure manipulation?