bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Subtle bug in quad-tf


From: Juergen Sauermann
Subject: Re: [Bug-apl] Subtle bug in quad-tf
Date: Sun, 20 Apr 2014 16:24:44 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi David,

thanks. Hopefully fixed in SVN 218.

/// Jürgen


On 04/20/2014 05:03 AM, David B. Lamkins wrote:
When using 2⎕tf to encode a nested array in which the last element is a
character array of rank greater than one, the parentheses around the
denotation of that element are incorrectly omitted.

       zzzz←'elan' 77 (2 3⍴⍳2)
       2⎕tf 'zzzz'
zzzz←'elan' 77 (2 3⍴1 2 1 2 1 2)
       zzzz←'elan' 77 (2 3⍴⍬)
       2⎕tf 'zzzz'
zzzz←'elan' 77 (2 3⍴0 0 0 0 0 0)
       zzzz←'elan' 77 (2 3⍴'ab')
       2⎕tf 'zzzz'
zzzz←'elan' 77 2 3⍴'ababab'
       zzzz←'elan' 77 (2 3⍴'')
       2⎕tf 'zzzz'
zzzz←'elan' 77 2 3⍴'      '

The problem doesn't exist when the rank of the final element is less
than two, since no parentheses are necessary to delimit the element's
denotation:

       zzzz←'elan' 77 'abc'
       2⎕tf 'zzzz'
zzzz←'elan' 77 'abc'
       zzzz←'elan' 77 ''
       2⎕tf 'zzzz'
zzzz←'elan' 77 ''








reply via email to

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