Brian wrote:

>  I was most surprised by the result [of  ''+1  ]  because 
>  it was not an error and because the result was an empty

Ah, after I posted I'd wondered if I'd answered the wrong question.  I'll post 
a more considered reply later (the technical answer is related to my original 
reply).

But, for now, you might take the outlook that  x+y  adds all corresponding 
pairs of numbers in  x  and  y  .  In your example,  x  is empty, so there are 
zero pairs of numbers; consequently, zero additions are performed, producing an 
empty result.

That it was not an error is a direct consequence of the rule I hightlighted in 
my original reply.

-Dan

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

Reply via email to