K result=k(0,"0N!",ki(42),(K)0);
Best regards,
Tiago Rodrigues
--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbpl...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/personal-kdbplus/xRtTODPLFt8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to personal-kdbpl...@googlegroups.com.
char *CALLBACK = NULL;
K callback() {
K a=kp("C");
k(0,CALLBACK,a,(K)0);
R (K)0; }
Z K1(test) {
CALLBACK=x->s;
sd1(0,callback);
R (K)0; }
upd:{[x] update state:x from `.mbt.c}
c:([name:0#`] s:0#0N; state:0#`; server:0#`)
Also, there seems to be a 1-2 second delay on the update from the callback. Does it have some kind of deferred execution?
Here is an example:
q).mbt.c
name| s state server
----| --------------
qt | 6 N
q).mbt.test[`upd]
q).mbt.c <------ About 1 second after .mbt.test call
name| s state server
----| --------------
qt | 6 N
q).mbt.c <------ About 3 seconds after .mbt.test call
name| s state server
----| --------------
qt | 6 C
This also means that if I call r0(a) after the call to k(0,...) it causes a sigsegv (I assume its freeing 'a' before finishing the update?)
q).mbt.c
name| s state server
----| --------------
qt | 6 N
q).mbt.test[`upd]
q).mbt.c
name| s state server
----| --------------
qt | 6 N
q).mbt.c
name| s state server
----| --------------
qt | 6 .
q)
rlwrap: warning: q crashed, killed by SIGSEGV.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsub...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsub...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsub...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/personal-kdbplus/xRtTODPLFt8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to personal-kdbplus+unsub...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.