bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Print width


From: Juergen Sauermann
Subject: Re: [Bug-apl] Print width
Date: Thu, 13 Feb 2014 16:47:10 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Kacper,

I have rewritten the ⎕PW line break algorithm.

A problem remaining is that there seems to be no precise description of
how this should look like, in particular for nested arrays.

The old algorithm tried to not break nested arrays (which caused the output to be longer than ⎕PW if
a nested item was big).

The new algorithm breaks at ⎕PW or earlier if possible.

Please let me know if you still have problems with the new algorithm.

Not sure, though, what is wrong with:

      ⎕PW⍴'='
==============================


/// Jürgen



On 02/02/2014 11:24 PM, Kacper Gutowski wrote:
As of revision 116, the problems with wrapping mixed arrays whose ⍕ is of
⎕PW width (or ⎕PW-1 before r113) still persist.

But there is another issue with wrapping which I think may be related.
When displaying nested vector whose elements are vectors, only the first
element is treated as expected.  All subsequent elements only start a new
line when they were to wrap and then continue without wrapping past ⎕PW.

       ⎕PW←30
       ⍴¨⍨,¨5 6 14
  5 5 5 5 5  6 6 6 6 6 6
        14 14 14 14 14 14 14 14 14 14 14 14 14 14
⍴¨⍨,¨15 3 4 5 15
  15 15 15 15 15 15 15 15 15 15
        15 15 15 15 15
        3 3 3  4 4 4 4
        5 5 5 5 5
        15 15 15 15 15 15 15 15 15 15 15 15 15 15 15
       ⎕PW⍴'='
==============================


-k





reply via email to

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