Hi Louis,
so I suppose this was not an issue.
BTW if you believe a lambda behaves differently than a defined function then
you can check the lambda with *⎕CR*, e.g.:
*ADD←{⍺+⍵;C;⎕IO;D}**
** ⎕CR 'ADD'**
**λ←⍺ λ1 ⍵;C;⎕IO;D*
*λ←⍺+⍵ *
Or, in your example:
* f←{⍎(⍵>1)⊃'⍵' '⍵×⍙ ⍵-1'⊣⎕IO←0
Yep, still 0 after )SIC.
I checked it with this function:
∇F;⎕IO
[1] ⎕IO←~⎕IO ◊ →1∇
And indeed ⎕IO goes back to its original value after )SIC.
Thank you. I should have put that in the original email.
Louis
> On 25 Aug 2016, at 04:01, Christian Robert
> wrote:
>
> After second though,
try ⎕IO
*after* )sic
the fact is that when a function is interruped, you see "by the last"
interrupted function. Until you type )sic or )reset
my 2 cents, as usual, I may be wrong.
Xtian.
On 2016-08-24 21:09, Louis de Forcrand wrote:
∇Z←F N;⎕IO
[1] Z←⍎(N>1)⊃'N' 'N×F N-1'⊣⎕IO←0∇