Your X should be x . Also, the verb named by x must be defined globally.
(data; VERB_1`'') may have trouble with the boxing; try (data;< VERB_1`'') Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Robert O'Boyle > Sent: Wednesday, April 09, 2008 2:34 PM > To: [email protected] > Subject: [Jprogramming] using verbs in the argument list of > another veb > > I am trying to call a verb within the argument list of > another verb. For > instance > > > > MAIN =: 4 : 0 > > VERB =. X`: 6 > > data =. y > > VERB data > > ) > > > > I have a number of VERB s that I would like to insert into the MAIN > function. In other words, different outside verbs use the > same function name > inside the function MAIN. This allows MAIN to be flexible to > use a number of > these outside verbs. I. have tried VERB_1`'' MAIN data but I > get a syntax > error. I tried MAIN being monadic and selecting VERB_1 from a > boxed and > unboxed lists (data; VERB_1`'') all to no avail. When I do > these outside of > a function MAIN, the extraction and execution with the > extracted verb works. > So there is something about putting this functionality in a > function that is > causing issues. Any help would be appreciated. > > > > Bob > > > > > > ---------------------------------------------------------------------- > For information about J forums see > http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
