lua-users home
lua-l archive

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

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.