bloomberg feeder : Bloomberg.c , kdb+ Update function

Hi, 

In the c code bloomberg.c, this line call q function Update: 

K ret = k(0, “Update”, u, (K)0); and u is a created by K u = knk(3, ks(ss((S)blpapi_Message_typeString(m))), ki(c.value.intValue), sequence_to_dictionary(e));

According to http://code.kx.com/q/interfaces/q-client-for-bloomberg/, The q Update function is defined like:

Update:{@[value;x;-1“Update: '”,string[x 0]," ",]}

Really don’t understand how above line of Update function works

Thanks for your help.

Eric

hi eric,

Update should be:

 Update:{@[value;x;-1"Update: '“,string[x 0],” ",]}

?it might be more apparent now that it finds value and traps any error, printing to stdout.?

Apologies for the superfluous escape characters in the code block – now removed. 

Thanks for the catch!




Stephen Taylor | Librarian | Kx | +44 7713 400852 | stephen@kx.com