bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] indexing precedence


From: enztec
Subject: Re: [Bug-apl] indexing precedence
Date: Wed, 15 Feb 2017 13:52:33 -0700

not even 3[1]  is good   of even (3)[1]        it has to be (,3)l1]    it has 
to be an ARRAY so the index can work

if this behavior is changed to do what apl2 has then this is no longer apl  - 
remember apl goes right to left 



On Wed, 15 Feb 2017 14:44:18 -0600
Xiao-Yong Jin <address@hidden> wrote:

> ISO/IEC 13751:2000(E) disagrees.
> On page 158, section 10.2.14 Indexed Reference,
> there is an example
>       1 2 3[2]
> 2
> 
> > On Feb 15, 2017, at 2:22 PM, Juergen Sauermann <address@hidden> wrote:
> > 
> > Hi Xiao-Yong,
> > 
> > IBM APL2.
> > 
> > [] binds stronger than anything else.
> > 
> > Thus 3[1 2] is evaluated first, giving the RANK ERROR.
> > 
> > /// J├╝rgen
> > 
> > 
> > On 02/15/2017 09:14 PM, Xiao-Yong Jin wrote:
> >> Feature or bug?
> >> 
> >>       1 2 3[2 1 3]
> >> RANK ERROR
> >>       1 2 3[2 1 3]
> >>           ^^
> >>       )sic
> >>       (1 2 3)[2 1 3]
> >> 2 1 3
> >> 
> >> 
> >> 
> >> 
> > 
> 
> 



reply via email to

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