Bill, Thanks for your very quick response. I had managed to work through the 'anonymous verb' idea through experimentation. I am still not clear, though, how the syntax used in jijs.ijs works, as in 3 : 0'' if. 0: ~: 4!:0 <'IFJIJX_j_' do. IFJIJX_j_=: 0 end. ) where the '' seems to me to be syntactically in error. Or is this a 'special case'? It would be welcome if the documentation could cover this, as there are clearly real uses in the loading of scripts, as in the above example.
As for 0!:100, it was definitely a case of not my reading the existing documentation effectively enough! Regards, Jeff -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bill lam Sent: 17 July 2008 10:46 To: Programming forum Subject: Re: [Jprogramming] Documentation sought Jeff.Mosmann wrote: > I have been trying to find documentation on two items, without success. > > > > The first item concerns the use of the following form of explicit definition > to elicit immediate execution of a (possibly non-assigned) verb on loading a > script, as found in jijs.ijs: > > > > 3 : 0'' > > ... > > ) This may be passed only by oral tradition, the verb is anonymous, cf. this should be more obvious, (3 : 'y,y') 'abc' abcabc > > The second item concerns the foreign conjunctions 0!:100 and 0!:101, also > found in jijs.ijs. in .... /j602/help/dictionary/dx000.htm Scripts 0!: 0!:k y The script y is executed according to the digits (zero or one) in the 3-digit decimal representation of k : 1st digit 2nd digit 3rd digit 0 From file or noun Stop on error Silent 1 From noun Continue on error Display For example, 0!:111 abc executes the noun abc, completes, and displays. eg, 100 1st digit is 1 ; 2nd digit is 0 ; 3rd digit is 0 regards, ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.136 / Virus Database: 270.4.10/1551 - Release Date: 14/07/2008 06:49 No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.136 / Virus Database: 270.4.10/1551 - Release Date: 14/07/2008 06:49 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
