I'm afraid I've found what looks like another bug in GNU APL. This one is a bit obscure, but here's a demonstration in svn 1286:

      a←0⍴('foo' 'bar')
      ≡a
2
      aa←a a
      ≡aa
3
      ≡¨aa
2 2
      ∇z←depth x
[1] z←≡x
[2] ∇
      depth a
2
      depth aa
3
      depth¨aa
1 1

The last line is where I think the bug is. I would expect the result there to be "2 2". It looks like somehow empty arrays are getting the wrong type when passed to a defined function by "each".

--
Ben Harris

Reply via email to