On Sun, Sep 2, 2012 at 7:21 PM, William Adams <william_a_adams@xxxxxxx> wrote: > Yah, I actually have a Lua table implementation that does exactly that, > keeps the type hanging around. You could do a hybrid, the first object, with the type is a Lua struct with the type still in it, but it has a __call metamethod that instantiates it like it was just the ctype object... its only the final vector you need to pass to C... Justin