Dave, Have you looked at the Locales lab under the Studio menu? It gives a pretty good overview of the conceptual aspects of this language feature. It also takes it a step further with an Object Oriented Programming lab, but I think that the first one will give you some concepts.
Hope this helps. Cheers, bob On 2013-02-01, at 7:49 PM, David Porter wrote: > Thanks Raul. That did help a little. > > What has me now is how to get the following: > q1.tests.test1 > q1.tests.test2 > q1.tests.test3 > > Under each of the three tests there will be multiple named variables. If I > understand what coinsert does correctly, that is to put a new locale on the > search path before _z_, then I don't understand how you generate the tree > structure described above. > > Then, again, maybe I am missing something that should be obvious... > > Dave > On 2/1/2013 9:09 PM, Raul Miller wrote: >> locales will do, but there's different ways of assigning depending on >> what you mean by "assign". For constants this is probably sufficient: >> >> cocurrent 'q1' >> test=: 3.1415 >> >> cocurrent 'q2' >> coinsert 'q1' >> >> cocurrent 'base' >> >> test_q1_ >> 3.1415 >> test_q2_ >> 3.1415 >> > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
