Why can I not see the .z namespace on 3.5 2017.11.30

Subject: Why can I not see the .z namespace on 3.5 2017.11.30Message-Id: Date: Mon, 29 Jan 2018 01:43:51 -0500To: personal-kdbplus@googlegroups.comMime-Version: 1.0 (Mac OS X Mail 9.3 (3124))X-Mailer: Apple Mail (2.3124)(!) .Q / shows all the functions in Q(!) .z / error message saying .z

Hey,

As far as I can see the .z namespace is more of a virtual namespace, in that it doesn’t behave like a normal namespace should. 

As an example as you’ve pointed out if you input:

q) key `

qQhj`o

The `z does not appear. 

As well as this if you try to show the function definitions of the .z namespace like you would the .Q it shows an error. e.g.

q).Q`en

k){[s;d;x]if[#f@:&{$[11h=@*x;&/11h=@:'x;11h=@x]}‘x f:!+x;(/:d,sym)??,/?:’{$[0h=@x;,/x;x]}'x f];@[x;f;{$[0h=@y;(-1_+\0,#:'y)_x[sym;,/y];x[sym;y]]}s]}[?]

q).z`c

'.z

  [0]  .z`c

  

  

If you need them, the definitions of the .z namespace can be found here:

https://code.kx.com/q/ref/dotz/

Hope this helps,

Seán

So is it something do with native code etc or is “virtual namespace” a kdb concept ?

I think it’s more to do with the way the .z namespace is written more than an actual concept in kdb. You just can’t view the function definitions in the namespace.