cancel
Showing results for 
Search instead for 
Did you mean: 

RE: [personal kdb+] Assigning to variables in the default context

david_demner
New Contributor
X-Originating-IP: 205.250.103.103User-Agent: Workspace Webmail 5.15.0Message-Id: <20150725205531.85f80dae80d1d2f2e266ec6278e6cbe8.a26ee3096f.wbe@email07.europe.secureserver.net>From: "David Demner \(AquaQ\)" To: personal-kdbplus@googlegroups.comSubject: RE: [personal kdb+] Assigning to variables in the default contextDate: Sat, 25 Jul 2015 20:55:31 -0700Mime-Version: 1.0
q)\d .new
q.new)`..blah set 11
`..blah
q.new)\d .
q)blah
11

-------- Original Message --------
Subject: [personal kdb+] Assigning to variables in the default context
From: Victor Wong <victor.wong@gmail.com>
Date: Sat, July 25, 2015 8:44 pm
To: Kdb+ Personal Developers <personal-kdbplus@googlegroups.com>

In the Q for Mortals section on contexts (http://code.kx.com/wiki/JB:QforMortals2/workspace_organization#Contexts), it shows that one is able to retrieve variables from the default context by accessing the context dictionary: 

q)\d .new
q
.new)`.[`ztop]

However, this doesn't seem to work for assignment:

q.new)`.[`ztop]:1
`assign

What is the right way to assign to variables in the default context from another context?

Thanks,
Victor

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to personal-kdbplus@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
0 REPLIES 0