Philip A. Viton wrote: > > I find that I often manage to define a noun (inside a verb) using local > assignment when I really need to do a global one. Is there any way to > write a function which I can use to force myself to do it the way I want > to - something like > > myvar assign 1 2 3 > > whose effect would be myvar =: 1 2 3 ? Or does anyone have an > alternative suggestion to help me get it right?
Another way is to use different naming conventions for local and global. For example, I use lower case throughout for local nouns, and uppercase or mixed case for globals (uppercase for global settings, mixed case for globals generated by the code). With this, it becomes natural to enter: NAMES=: '' Names=: '' names=. '' ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
