lua-users home
lua-l archive

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


On Sat, Aug 23, 2014 at 8:31 AM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:

> using LuaJIT's FFI, of course, which isn't exactly userdata... but
> when i've used any buffer-like userdata object, it's trivially easy to
> add a :substr([i,[j]]) method and a :setslice(s[,i[,j]]) too, if i
> want it to be mutable.  the [,j] optional argument only goes there if
> it's legal to shift content around, obviously.

Ahhh I wish I could enjoy luajit, most of my friends are on "stock
Lua" though :(  I really need to take a look at the ffi alternatives
:3