Yes I've gone over the labs several times in the last few years, and I get a little more out of them each time. I guess my mind just likes to think the way it does. I'll go over them again and see if there is light at the end of my tunnel.

Thanks,
Dave
On 2/1/2013 11:04 PM, bob therriault wrote:
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


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to