Ā Ā Ā 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.