Hi,

I have changed the code so that ⎕PW is not copied when no objects are specified
in the )COPY command, SVN

As much as I like IBM APL2 compatibility there is a limit to it when it begins
to make no sense anymore.

For example if I would say:

*      )COPY some_WS A B ⎕PW*

then IBM APL2 would copy A and B but not ⎕PW. This is rather counter-intuitive and
I take the freedom to copy ⎕PW in GNU APL even though IBM APL2 would not.

When it comes to commands, the ISO standard explicitly leaves a lot of freedom
to their implementation.

/// Jürgen


On 07/02/2014 05:01 AM, Blake McBride wrote:
As I've stated before, I am not smart enough to understand that spec. IBM's language manual is readable, and it is clear about how it works. Also, I just tested IBM APL 2. It works as I describe.


On Tue, Jul 1, 2014 at 9:48 PM, Elias Mårtenson <[email protected] <mailto:[email protected]>> wrote:

    The standard spec is not entirely clear on this, but the way I
    read it suggests that everything it supposed to be copied.

    Regards,
    Elias


    On 2 July 2014 09:58, Blake McBride <[email protected]
    <mailto:[email protected]>> wrote:

        According to the IBM APL2 Programming Language Reference (page
        423), the )COPY command should not copy ⎕PW.  The manual
        states:  "The only system objects that can be copied are ⎕CT,
        ⎕FC, ⎕IO, ⎕LX, ⎕PP, ⎕PR, and ⎕RL.

        Current GNU APL:

              )CLEAR
        CLEAR WS
              ⎕PW←80
              )save ws1
        2014-07-01  20 <tel:2014-07-01%20%C2%A020>:57:00 (GMT-5)
              ⎕PW←132
              )COPY ws1
        SAVED 2014-07-02 -4:57:00 (GMT-5)
              ⎕PW
        80




Reply via email to