Re: small problem with LuaJIT FFI and gc method
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: small problem with LuaJIT FFI and gc method
- From: Mike Pall <mikelu-1103@...>
- Date: 2011年3月17日 17:48:24 +0100
Francesco Abbate wrote:
> Mike, could you confirm my analysis of the problem ?
Looks correct.
> 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.
--Mike