bug-apl
[Top][All Lists]
Advanced

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

Bug? Cannot )erase free-standing '⍺', '⍵' vars created by parse error


From: Russtopia
Subject: Bug? Cannot )erase free-standing '⍺', '⍵' vars created by parse error
Date: Sat, 6 Mar 2021 09:21:37 -0800

It is expected that parsing errors can result in 'free' ⍺,⍵ variables in the workspace (outside of any lambda), and that they do not show up in )vars and cannot be deleted short of a )clear?

In a new, clear GNU APL session:

      {(⊂⍺){⍺[⍵;]}¨⍳≢⍵}⍨(3 4⍴⍳12)
 1 2 3 4  5 6 7 8  9 10 11 12
      ⍺
VALUE ERROR
      ⍺
      ^
      ⍵
VALUE ERROR
      ⍵
      ^
      ⍝⍝ As expected...
      {⍺{⍺[⍵;]}¨⍳≢⍵}⍨(3 4⍴⍳12)
RANK ERROR
λ1[1]  λ←⍺ λ1¨⍳≢⍵
         ^    ^
      ⍺
1  2  3  4
5  6  7  8
9 10 11 12
      ⍵
1  2  3  4
5  6  7  8
9 10 11 12
      )erase '⍵'
NOT ERASED: '⍵'
      )erase '⍺'
NOT ERASED: '⍺'
      ⎕ex '⍺'
0
      ⍺
1  2  3  4
5  6  7  8
9 10 11 12
      )vars
      )clear
CLEAR WS
      ⍺
VALUE ERROR
      ⍺
      ^


reply via email to

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