True. But 'a_base_ b'=.1 2 assigns a globally into the base locale and b is a local name.
In addition, if a exists as a local name then a=.1 results in an error. Whether using =. or =: explicitly including the locale in the name avoids the error. On Mon, Jan 18, 2010 at 5:14 PM, Zsbán Ambrus <[email protected]> wrote: > On Mon, Jan 18, 2010 at 2:37 PM, Don Guinn <[email protected]> wrote: > > Explicitly including the locale in a name makes a local copula (=.) a > global > > assignment. [...] > > It also lets you get > > around the error message about making an assignment of a global name when > > the name already exists as a local name. > > You don't need this feature for that, for assigning to a name with > locale with the =: copula also lets you do that. For example, > > 3 :('a =. 5';'a =: 2') 0 > |domain error > | a =:2 > 3 :('a =. 5';'a_base_ =: 2') 0 > 2 > > Ambrus > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
