cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning to variables in the default context

Victor_Wong
New Contributor
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

0 REPLIES 0