Yes, thank you - I appreciate the follow up.

I had intended to highlight that issue, but got distracted and sent my
message without the explanation.

Thanks again,

-- 
Raul

On Fri, Apr 5, 2013 at 9: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

Reply via email to