[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: small problem with LuaJIT FFI and gc method
- From: Mike Pall <mikelu-1103@...>
- Date: Thu, 17 Mar 2011 17:48:24 +0100
Francesco Abbate wrote:
> Mike, could you confirm my analysis of the problem ?
> Could you suggest
> a better solution to what I've found or may be give some general
> recommendations ?
Remove the artificial difference between a matrix and a matrix
view, i.e. return the matrix element of the struct from the C
code. Or (if you must) copy it on the Lua side to a newly
allocated struct. That's not very efficient, though.