[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] Bug when assigning variable to result of function call on
From: |
Kacper Gutowski |
Subject: |
Re: [Bug-apl] Bug when assigning variable to result of function call on self |
Date: |
Thu, 20 Feb 2014 10:24:52 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On 2014-02-20 01:05:16, Elias Mårtenson wrote:
>
> ∇N disploop S
> →(N=0)/0
> next:
> S←next S
> disp ← '.#'[1+S]
> ⎕DL ÷4
> N←N-1
> →next
> ∇
In this function, next is 2 (a label) rather than function you
defined earlier. So you literally have [3] S←2 S.
> By the way, shouldn't S be local to the function disploop? Why is it
> visible at all here?
It is local, look at your )SI. Here, after an error, you are scoped
inside disploop function so you can examine the situation. You can
escape using → or )SIC.
-k