bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] ISO Monadic Quad-FX


From: Louis de Forcrand
Subject: [Bug-apl] ISO Monadic Quad-FX
Date: Sun, 26 Jun 2016 03:04:05 +0200

I've been browsing through the system functions in the standard,
and found a (somewhat negligible) inconsistency in GNU APL's
implementation of monadic ⎕FX.

Shouldn't this use of ⎕FX:
- define a monad TEST
- return 'TEST'
?

      )CLEAR
CLEAR WS
      ⎕FX ⊃'∇Z←TEST X' '⎕←"hi"' 'Z←X∇'
1
      )FNS
      TEST 5
VALUE ERROR
      TEST 5
      ^
      
Clearly ⎕CR ⎕FX C yields an error as well, while the standard
states that it should be equivalent to C (which is a well-formed
character matrix) on page 203. In addition, AFAIK GNU APL's
⎕FX returns 1 no matter what I feed it. Maybe my character
matrix is ill-formed?
Yes, I should remove the del characters. Then ⎕FX works as
described in the standard, except when it should signal errors.
Unless the returned 1 is intended behaviour?


Thanks,
Louis


reply via email to

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