C++ into Q

Hi Q gods,

I have a C++ program which required heavy memory lifting to be “prepared”. After it is done all those heavy lifting, the preceding calculation is however very fast.

Looking at the C API, it seems that I can only return primitive types back into Q.

Is there a way that I can return a custom object into the memory (like a handle) to be used later?

Thanks,

agoodname

Look at 2: (2 colon) function on the kdb website