bug-apl
[Top][All Lists]
Advanced

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

Re: Loading .apl files differes from .xml workspaces


From: Dr . Jürgen Sauermann
Subject: Re: Loading .apl files differes from .xml workspaces
Date: Wed, 8 Apr 2020 20:25:49 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Hi Blake,

I was thinking of this but then discarded it. Storing functions
left-justified would
loose all indentation of the code:

 *         ∇foo**
**[1] 1**
**[2]  2**
**[3]   3**
**[4] ∇**
******
**      ⎕CR 'foo'**
**foo**
**1  **
** 2 **
**  3*

I know that currently indentation of defined functions is not always kept
intact but I would prefer to fix that in the long run rather than
removing it.

Best Regards,
Jürgen


On 4/8/20 3:46 PM, Blake McBride wrote:
> Greetings,
>
> Echoing some thoughts I've had on this subject, given the trouble
> we've had with function formatting over the years between the del
> editor and ⎕CR, I get the impression that function formatting is
> occurring at the wrong place.  I think internally functions should be
> stored left-justified always.  The del editor would then be the one
> adding the formatting for comments and labels.  This way there
> wouldn't be ongoing problems between the del editor, save, dump, and ⎕CR.
>
> Thanks.
>
> Blake
>
> On Wed, Apr 8, 2020 at 8:36 AM Blake McBride <address@hidden
> <mailto:address@hidden>> wrote:
>
>     Greetings,
>
>     Look at the formatting.  In particular look at how the lines with
>     labels and comments are indented.  They are indented differently
>     depending on whether the file is saved or dumped.
>
>           ∇ABC[⎕]∇
>         ∇
>     [0]   ABC
>     [1]   X←4
>     [2]  EN1: Y←5
>     [3]   Z←7
>     [4]  ⍝ THIS IS A COMMENT
>     [5]   Z←5
>         ∇
>           )save test
>     2020-04-08  08:30:48 (GMT-5)
>           )dump test
>     2020-04-08  08:30:52 (GMT-5)
>           )load test    
>
>     WARNING: filename /home/blake/workspaces/test
>         is ambiguous because another file
>         /home/blake/workspaces/test.apl
>         exists as well. Using the first.
>
>     SAVED 2020-04-08 08:30:48 (GMT-5)
>           ∇ABC[⎕]∇
>         ∇
>     [0]   ABC
>     [1]   X←4
>     [2]  EN1: Y←5
>     [3]   Z←7
>     [4]  ⍝ THIS IS A COMMENT
>     [5]   Z←5
>         ∇
>           )load test.apl
>     DUMPED 2020-04-08  08:30:52 (GMT-5)
>           ∇ABC[⎕]∇
>         ∇
>     [0]   ABC
>     [1]    X←4
>     [2]    EN1: Y←5
>     [3]    Z←7
>     [4]    ⍝ THIS IS A COMMENT
>     [5]    Z←5
>         ∇
>
>     Thanks!
>
>     Blake
>




reply via email to

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