bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] Selective Specification Anomaly


From: Mike Duvos
Subject: [Bug-apl] Selective Specification Anomaly
Date: Fri, 14 Aug 2015 16:33:33 -0700


      )CLEAR
CLEAR WS
     
      A ← 'ZIPPITY' 'DOO' 'DAH'
      ∊2⌷A
DOO
      (∊2⌷A) ← 0
      A
 ZIPPITY  0 0 0  DAH

So far, so good.  Let's try it again with brackets.

      A ← 'ZIPPITY' 'DOO' 'DAH'
      ∊A[2]
DOO
      (∊A[2]) ← 0
      A
 Z 0 PPITY  DOO DAH

Clearly, it's parsing the selective specification as (∊A)[2] and not ∊(A[2]).

APL2 doesn't even try, and just gives a syntax error.



reply via email to

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