[net.lang.apl] APL interpreter error.

ljdickey@watmath.UUCP (Lee Dickey) (06/22/84)

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