bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Each bug


From: Juergen Sauermann
Subject: Re: [Bug-apl] Each bug
Date: Mon, 14 Jul 2014 17:59:01 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi,

thanks, fixed in SVN 373.

/// Jürgen


On 07/14/2014 05:36 AM, Elias Mårtenson wrote:
Interesting. Given the following definition of pp:

    ∇Z←X pp Y
    ⎕←'comparing'
    ⎕←'  X=' (8⎕CR X)
    ⎕←'  Y=' (8⎕CR Y)
    Z←X≡Y
    ∇

I get the following output:

      (⊂'foo') pp¨ (,⊂'foo')
comparing
   X=  ┌─────┐ 
       │┌→──┐│ 
       ││foo││ 
       │└───┘│ 
       └∊────┘ 
   Y=  ┌→────┐ 
       │┌→──┐│ 
       ││foo││ 
       │└───┘│ 
       └∊────┘ 

Seems to be to be a bug in the implementation of ¨ (each).

Regards,
Elias


On 14 July 2014 11:28, Blake McBride <address@hidden> wrote:
GNU APL:


      (⊂'myfile')≡¨⊂'myfile'
1
      (⊂'myfile')≡¨,⊂'myfile'
0


IBM APL 2 returns 1 in both cases.  I had a vector I was using.  I got one result when I had 2 or more elements, and another result when there was only one element - even though it was still a vector.  IBM's result is consistent regardless of 0, 1, 2 or more elements.

Thanks.

Blake




reply via email to

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