I use luabind to glue together a few big peaces of code (my own calculation
and a number of external libraries for minimization and plotting). Right now
I am stuck trying to figure out how do I convince luabind to handle some
exotic types, like "long long" of "float *".
Trying to directly wrap functions expecting/returning any of the above types
crashes the program somewhere deep in the luabind's guts.
In case of "long long" I just wrote a tiny wrapper, which converts it into
double, but this seems to be the wrong way, as I will need soon more of these
functions and wrapping each of them does not seems to be a right way.
The other, even bigger problem is how to convince luabind to pass things
like "float *" in an opaque way. As an example I have following method:
and the class called TArray, which I use to fill in array and want to feed in
On the lua side all I want is to be able to write something like
nt:Fill(ar:GetArray()) without crashing the things.