Closed faeredia closed 1 year ago
+⍤1⊢ and (+⍤1) are behaving differently when binding to a variable or printing
+⍤1⊢
(+⍤1)
This works as expected:
> (april:april "⎕← x← 10 20 +⍤1⊢ 2 2⍴⍳4 ⋄ x") 11 22 13 24 #2A((11 22) (13 24))
This does not:
> (april:april "⎕← x← 10 20 (+⍤1) 2 2⍴⍳4 ⋄ x") The variable APRIL-WORKSPACE-COMMON::|x| is unbound.
Oddly, with no printing or assignment, it returns the right answer:
> (april:april "10 20 (+⍤1) 2 2⍴⍳4") #2A((11 22) (13 24)) > ;; This doesn't print > (april:april "⎕← 10 20 (+⍤1) 2 2⍴⍳4") #2A((11 22) (13 24))
This now works.
+⍤1⊢
and(+⍤1)
are behaving differently when binding to a variable or printingThis works as expected:
This does not:
Oddly, with no printing or assignment, it returns the right answer: