Re: Access to parameterized type

  • From: Justin Cormack <justin@xxxxxxxxxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sun, 2 Sep 2012 19:42:58 +0100

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

Other related posts: