qpad changing context doesn't work

97 views
Skip to first unread message

Tahsin Alam

unread,
Aug 1, 2013, 10:41:10 AM8/1/13
to personal...@googlegroups.com
Hi all - 

(newbie alert!)

Am using QPad to connect to a server, and would like to work on my own context.
However \d doesn't seem to work:

\d .tahsin
\d

still produces `. as my current context.
I can create variables in the .tahsin context, and access them, as expected. The only thing I can't seem to do is change the default context to it.

This may be a QPad specific issue .... 

Thanks in advance




Ryan Hamilton

unread,
Aug 1, 2013, 10:57:35 AM8/1/13
to personal...@googlegroups.com
Hi,

Try
system "d .tahsin"
It should work.

The change in context only applies within the same query from remote connections.
There is another quirk to watch out for, that functions defined this way, are not actually defined within the namespace (this is different behaviour than  if you loaded the script using \l.






--
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/groups/opt_out.
 
 

Oleg Zakharov

unread,
Aug 1, 2013, 11:05:57 AM8/1/13
to personal...@googlegroups.com

Hi, Tahsin!

It (switching default workspace) is one of the things that won't work through IPC, whatever client you'll use. Will only work in the script file being loaded locally on an instance.

As a side note,I'd refrain from setting default workspace for a number of reasons (most of which being general humanity for the readers of you're code). ;)

Cheers,
Oleg

Tahsin Alam

unread,
Aug 8, 2013, 11:05:40 PM8/8/13
to personal...@googlegroups.com
Thanks - seems like this is not something I can do through QPad.
Reply all
Reply to author
Forward
0 new messages