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 nms=. (4!:1 y) -. ;: 'x y x. y.' which specifically removes instances of x and y, as well as x. and y. . That's because nl is an explicit verb, so x and y are overwritten with local values once you enter the verb.
Marshall On Mon, Sep 26, 2011 at 9:46 AM, The Geeko <[email protected]> wrote: > Here is how to reproduce: > 1) From within jgtkide, define global nouns m, n, x, y, u, and v. > 2) Use the namelist, formatted namelist, and selective namelist verbs. > (These > verbs are highlighted in the stdlib.ijs file located in the repo at > http://www.jsoftware.com/trac/base7/browser/trunk/main/main/stdlib.ijs) > 3) The selective namelist and formatted namelist have a bug, in that they > neglect to identify the x and y globals. Their relative, namelist, however > behaves as expected. In both monadic and dyadic forms, namelist displays > the > variables of interest. > > I am gaining better comfort with this library... Life is good. > > Notes: > selective namelist = nl > formatted namelist = names > namelist = namelist (of which both forms are flawless) > > I would expect that the results of all three verbs would be the same > (except, > perhaps, w.r.t. formatting). > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
