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

2017-06-28 Thread Juergen Sauermann
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 O

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

2017-06-28 Thread Elias Mårtenson
On 28 June 2017 at 18:22, Kacper Gutowski 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

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

2017-06-28 Thread Kacper Gutowski
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

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

2017-06-28 Thread Elias Mårtenson
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