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: Juergen Sauermann
Subject: Re: [Bug-apl] Right-arrow, correct behaviour?
Date: Wed, 28 Jun 2017 12:27:29 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi Elias,

I think so. without argument is ESCAPE not GOTO 0.
ESCAPE unrolls the )SI stack until it reaches immediate execution.

Similar to throwing an exception and stopping at a try {} block.

/// Jürgen


On 06/28/2017 12:02 PM, 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?

Regards,
Elias


reply via email to

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