bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Workspace Migration Error


From: Mike Duvos
Subject: Re: [Bug-apl] Workspace Migration Error
Date: Mon, 31 Aug 2015 06:54:31 -0700

It appears that M←¯12-⎕IO-⍳25 isn't the most general case of J-Vectors in .atf files.

M←54-6×⍳18 will yield the error... (in ones origin)

ERROR: inverse 2 ⎕TF failed for 'M←48-¯6×⎕IO-⍳18

Another OUT file attached.
   


On Mon, Aug 31, 2015 at 5:53 AM, Juergen Sauermann <address@hidden> wrote:
Hi Mike,

it would help if you could provide the file OUT for which the )IN command fails.

Generally speaking, )IN is an very dangerous command because it executes ()
the records in the file in order to reconstruct a workspace, and it will do whatever
the producer of the file wants to do (with your permissions).

For that reason, GNU APL does not use execute () in order to implement )IN (or 2 ⎕TF),
but has a special parser to process the records. That special parser is limited in what APL functions
it allows. Unfortunately there exist no specification as to which APL functions can be used in 2 ⎕TF

The pattern below (
'M←¯12-⎕IO-⍳25') has not occurred before, so the parser didn't know.
But once I have the file, I can add and test it.

/// Jürgen


On 08/31/2015 05:25 AM, Mike Duvos wrote:
[IBM APL2]

       )CLEAR
CLEAR WS
      ⎕IO←0
      M←¯12+⍳25
      )OUT OUT
      

[GNU APL]

      )IN OUT
ERROR: inverse 2 ⎕TF failed for 'M←¯12-⎕IO-⍳25

I'm assuming the error here is on the GNU APL side of the transaction, as APL2 has been around for a while, and people would have complained.

                                                     ;


Attachment: OUT.atf
Description: Binary data


reply via email to

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