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