bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

¨ (each) on defined function on array of empty arrays


From: Ben Harris
Subject: ¨ (each) on defined function on array of empty arrays
Date: Sat, 30 May 2020 15:03:37 +0100 (BST)
User-agent: Alpine 2.11 (DEB 23 2013-08-11)

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

[Prev in Thread] Current Thread [Next in Thread]