bug-apl
[Top][All Lists]
Advanced

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

Re: Potential problem in diadic iota (⍳) or in Pick (⊃)


From: Kacper Gutowski
Subject: Re: Potential problem in diadic iota (⍳) or in Pick (⊃)
Date: Fri, 7 Aug 2020 22:51:33 +0200

Indeed, as Christian wrote, the fix is not sufficient. But I still believe it's in the branch I previously mentioned as commenting out the whole optimization by flipping #if 1 to 0 at PrimitiveFunction.cc:319 fixes it as far as I can see (at cost of performance of course).

Other examples in the same vein still failing at r1334:

      A←64?64 ⋄ B←⍳6 ⋄ B≡A[A⍳B]         ⍝ this should be 1
0
      A←3×⍳64 ⋄ B←⍳6 ⋄ B≡A[A⍳B]         ⍝ this should be INDEX ERROR
0
      A←⎕IO+64|3×⍳64 ⋄ B←⍳6 ⋄ B≡A[A⍳B]  ⍝ this should be 1
0

-k



reply via email to

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