Martin asked:
> Besides ":", do we have primitive conjunctions or adverbs
>  which return anything other than verbs?

Mark D. Niemiec quoted me, then wrote:
>  ~ Evoke can produce any kind of object, depending on the name given.

>  Some foreigns produce operators
>  (5!:0 returns an adverb; I thought there was one other but I can't find
> it).

John Randall chipped in:
>  How about f. .

I noted all of these in my original message:  

   http://www.jsoftware.com/pipermail/programming/2007-December/009137.html

That's the what I was referring to in the message Mark quoted.  I also have
a vague feeling there is another foreign which produced a non-verb.  I may
just be remembering  13!:16  from J4, though, because the Dictionary now
explicitly states:

          The conjunction !: applies to integer scalar left and right
arguments to 
          produce verbs, with the exception that the case 5!:0 produces an
adverb.

at 
file://localhost/C:/Program%20Files/J/b602a/system/extras/help/dictionary/xmain.htm
 
.

-Dan

PS:  I've appended the original message below

----- Original Message ----- 
From: "Dan Bron" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, December 18, 2007 11:13 PM
Subject: Re: [Jprogramming] Aiming at a multi-core future


> 
> Martin asked:
>> Besides ":", do we have primitive conjunctions or adverbs
>>  which return anything other than verbs?
> 
> Sure.  Conjunctions:
> 
>    (<'/') 5!:0
> /
> 
>    (<'/')`:6
> /
> 
> Adverbs:
> 
>    Adverb=:/
> 
>    'Adverb'~
> /
> 
>    'Adverb' f.
> /
>    
>>  Does anyone have non-primitive C/As which do not return V?
> 
> Not sure what you mean by non-primitive, but  1 :  and  2 :  can return
> any
> part of speech trivially:
> 
>    +1 : '&'
> &
>    
> If by "non primitive" you mean compound tacit expressions, and don't mind
> a
> bit of overkill, then have a look at:
> 
>    
> http://www.jsoftware.com/pipermail/programming/2007-November/008816.html
> 
> That message defines a tacit(ish) adverb which, like  ".  , executes any J
> sentence, but, unlike  ".  , returns any part of speech:
> 
>    '~~~~' ae
> ((~~)~)~
> 
> Of course, in the end all such "compound, tacit" mechanisms must rely upon
> a
> primitive to produce the final result.  In this case that primitive is
> (not
> surprisingly)  :  .
> 
> The rest of your message was quite interesting and informative.  It
> addressed long-standing questions / thoughts I'd had.  I need to study it
> in
> more detail.  I do not yet have an intuitive grasp of the parse table.
> 
> -Dan
> -- 
> View this message in context:
> http://www.nabble.com/Aiming-at-a-multi-core-future-tp14383671s24193p14410959.html
> Sent from the J Programming mailing list archive at Nabble.com.
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Programming-Digest%2C-Vol-27%2C-Issue-39-tp14431754s24193p14437546.html
Sent from the J Programming mailing list archive at Nabble.com.

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

Reply via email to