>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: Empty Arrays Assignment Flaws
Alain.AMIOUNI
Empty Arrays Assignment Flaws
Posted: Thursday, April 14, 2005 1:58 PM (EST)

© An implementation flaw shows up when an empty ©array is assigned using Þ (or []), take † and

© expand \ .

© The following example works as expected, the empty array is not altered by the pick specification

© This triggers a system failure of a 

© competitor's interpreter. Nobody is perfect.


  A„0½›¼2 ª A1„A ª (3œ4†A)„5 5½¼25 ª A­(match)A1
1


©But the following strictly equivalent specification
© gives an original result.

 

© (Note that the referred to competitor's system

©  produces a correct result as for the few next

©  examples)


  A„0½›¼2 ª A1„A ª (3Þ4†A)„›5 5½¼25 ª A­(match)A1
0
      †A1          © A's old prototype
0 0

 

      ½A

0

    
      †A            © ...and brand new one.


1  2  3  4  5
6  7  8  9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
     

© As for take and expand A's prototype is altered 

© the same way if A is nested. With A„0½¼2 one

© gets a less colorful result: a plain scalar blank

© prototype.


   A„0½¼2 ª A1„A ª (0 0 0\A)„›5 5½¼25 ª A(match)­A1

0
      ½½†A
0
      ' '(match)­†A
1
   A„0½¼2 ª A1„A ª (3†A)„›5 5½¼25 ª A(match)­A1
0
      ½½†A
0
      ' '­(match)†A
1


Comments:

Author Thread:
Support
Empty Arrays Assignment Flaws
Posted: Friday, April 15, 2005 4:29 PM (EST)
The matter is being treating as a new bug.  Thank you for bringing it to our attention.

APL2000 Support

     



APL2000 Official Web Site

May the smile on your face Come straight from your heart
--- Anonymous

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |