May I know how I can access the symbol in my C/C++ program when the symbol is enumerated?
I got a K pointer where k->t is -20, as expected. But k->s in this case is NULL. Is there any way that I can retrieve the actual string being represented by a enumerated symbol in C/C++ code?
can push it through
K y=k(0,“value”,x,(K)0);
just as you would do in q to unenumerate it
q)s:a
bc
d;value `s!2 3 0 1
c
da
b
Thanks for the pointer, Charles.
The use of k(0, …) for such purpose seems rather inefficient? And I believe it’s unsafe to perform such conversion in a slave thread (my C++ library’s main processing logic runs outside of kdb+'s main thread).