bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Right-arrow, correct behaviour?


From: Elias Mårtenson
Subject: Re: [Bug-apl] Right-arrow, correct behaviour?
Date: Wed, 28 Jun 2017 18:24:47 +0800

On 28 June 2017 at 18:22, Kacper Gutowski <address@hidden> wrote:
On Wed, Jun 28, 2017 at 06:02:03PM +0800, Elias Mårtenson wrote:
> I have defined a function as such:
>
> ∇ Z ← foo X
>   →(X=0)/zero
>   Z ← 'not zero'
>   →
> zero:
>   Z ← 'zero'
> ∇
>
> When calling this function with a non-zero argument, I expect the return
> value to be 'not zero'. Instead it simply exits the function. Is this
> correct behaviour?

I think this is correct, it's returning an escape.
You probably wanted to do →0 instead of →.

Got it. Thanks! 

reply via email to

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