> > 13!:0 ] 1 > negx=: 1 : '(- x) u y' > 3+negx 7 > |domain error: negx > |negx[:0]
The problem here is that you defined an adverb with only monadic valence, and then used it dyadically. > negx=: (3 : 'u - y') : (4 : '(- x) u y') > 3+negx 7 The problem here is that you never defined an adverb. You defined a verb (using the : conjunction), and u was not defined in it. Sounds like you want negx =: 1 : 0 : (- x) u y ) or negx =: 1 : '(u~ -)~' Henry Rich > > The second definition entry should have reported a Stack Error. When Debug is > off, the second usage attempt reports a Value Error for u, without killing the > server. > > 2. I see that my copy of the software is over a year old. It is not easy to > find release dates on the Downloads site; additional columns for engine and > library dates would be most useful. If this problem has been fixed, I > would be > happy to update. > > 3. Dictionary sections on Monad-Dyad use are terribly brief. Discussions of > adverb and conjunction definition processes are longer in JLearn and JfC, and > somewhat complement each other, but still leave me somewhat confused. Are > there yet other elaborations available? > > Thanks. > --ArtAnger > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm