Marshall Lochbaum <mwlochbaum <at> gmail.com> writes:

> 
> Step 1 is a problem. You never want to define global variables x and y . In
> fact, if you inspect the code for nl, you will find the line

You are right about the line... as I have confirmed.  But my point is that this 
is a flaw in the implementation of nl.  For a more thorough discussion, see my 
earlier reply regarding the inconsistency issue.

If nl is simply going to treat 'x' and 'y' special (in an ad-hoc fashion)... 
then, for consistency, let's also treat 'm', 'n', 'u' and 'v' special.  All 6 
of 
these are used within definitions -- but *not* reserved by the language 
specification (as best as I can discern what that is).

At the very least, correct the issue with namelist, which currently (and 
correctly so, imho) reports 'x' and 'y' thereby creating the "GOTCHA!" 
experienced with nl and names.


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to