Article View: net.lang.apl
Article #104APL interpreter error.
From: Lee Dickey
Date: Fri, 22 Jun 1984 07:52
Date: Fri, 22 Jun 1984 07:52
24 lines
1176 bytes
1176 bytes
I have been looking at apl\11.
Does yours do what mine does?
It seems that the SCAN operator "\" does something wrong with "-" and "%".
The expression
- \ 1 2 3
gives
1 1 2
which has a sign wrong in the middle element. It is supposed to be
- / 1 2
Similarly, the expression
% \ 1 2 3
gives something wrong in the middle element, because it is supposed to be
% / 1 2
It looks to me as though the implementer might be trying to make use
of the fact that subtraction is "almost" associative, and forgot
to include the minus signs on the even numbered terms.
--
Lee Dickey, University of Waterloo. (ljdickey@watmath.UUCP)
... {allegra, decvax} !watmath!ljdickey
Technical Details
Message-ID:
<8101@watmath.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!ljdickeyShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site watmath.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!ljdickey From: ljdickey@watmath.UUCP (Lee Dickey) Newsgroups: net.lang.apl Subject: APL interpreter error. Message-ID: <8101@watmath.UUCP> Date: Fri, 22-Jun-84 03:52:59 EDT Article-I.D.: watmath.8101 Posted: Fri Jun 22 03:52:59 1984 Date-Received: Fri, 22-Jun-84 07:36:10 EDT Organization: U of Waterloo, Ontario Lines: 24