2012/4/12 Björn Helgason <gos...@gmail.com>:
> The empties do not behave the same
>
>    0^0
> 1

Not an empty

>   a:=''
>
>   a:=i.0
>
>    (i.0)^i.0
>
>    ('')^('')
>

No behavioral difference on empties.

>   0%0
> 0

Not an empty.

>   0%i.0
>
>    (i.0)%i.0
>

No behavioral difference on empties.

>    (a:)%(a:)
> |domain error
> |   (a:)    %(a:)


Not an empty.

>    (i.0)^''
>

No behavioral difference on empties.

>   a:-:i.0
> 0
>
>    (a:) ^(a:)
> |domain error
> |   (a:)    ^(a:)

Not an empty.

To my knowledge, the only difference between empties (other than in
the context of foreigns) has to do with how they get padded, when
padding is called for (e.g. the result of {.).

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

Reply via email to