I think this came up a few months ago.. but can someone remind me why
switching locales works the way it does?
foo =: 3 : ('cocurrent''FOO''';'1+2')
NB. resets the locale to base
foof =: 3 : ('cocurrent f.''FOO''';'1+2')
NB. leaves the locale set to FOO
goo =: 3 : ('cocurrent''GOO''';'1+2';'empty 3')
NB. resets the locale to base (empty is defined in z)
goof =: 3 : ('cocurrent f.''GOO''';'1+2';'empty 3')
NB. resets the locale to base (this result is unexpected)
coname''
+----+
|base|
+----+
foo 1
3
coname''
+----+
|base|
+----+
foof 1
3
coname''
+---+
|FOO|
+---+
cocurrent'base'
goo 1
coname''
+----+
|base|
+----+
goof 1
coname ''
+----+
|base|
+----+
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm