I made him an answer he couldn't refute. -Don Bron
Please excuse typos; composed on a handheld device. On Apr 5, 2013, at 10:01 AM, "R.E. Boss" <[email protected]> wrote: > I like the "Don"! > > > R.E. Boss > > >> -----Oorspronkelijk bericht----- >> Van: [email protected] >> [mailto:[email protected]] Namens Greg Borota >> Verzonden: vrijdag 5 april 2013 15:49 >> Aan: [email protected] >> Onderwerp: Re: [Jprogramming] Obtaining the file path of an ijs file >> >> Sneaky trick. I like it. Thanks Don for clarifying this. >> >> >> On Fri, Apr 5, 2013 at 8:32 AM, Dan Bron <[email protected]> wrote: >> >>>> Anyways, if you are not in a function >>>> definition it uses the name you >>>> are assigning to as a name in the >>>> current locale. >>> >>> Yes, but an important clarification for newcomers to J is that the normal >>> script loading mechanisms, load'script.ijs' and require'script.ijs' (this >>> latter one could be named loadOnlyOnce) wrap your scripts in function >>> definitions. >>> >>> This fact is transparent to the user, and has almost no material >>> implications, except that it permits local assignments in a script, outside >>> of function definitions in that script, to act as true-blue locals. They >>> exist and act normally during the script loading phase, and evaporate >>> thereafter. >>> >>> And, since the J IDE uses load and require to run (temporary) scripts >>> during development, you can use local names with abandon, and they won't >>> pollute any namespace. This allows the IJS window to function as a really >>> nice scratchpad. >>> >>> -Dan >>> >>> Please excuse typos; composed on a handheld device. >>> >>> On Apr 5, 2013, at 9:17 AM, Raul Miller <[email protected]> wrote: >>> >>>> Anyways, if you are not in a function definition it uses the name you >>>> are assigning to as a name in the current locale. >>> ---------------------------------------------------------------------- >>> 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
