I agree that the new behavior after 740 is not right.
still newbie and will be for a long time,
Xtian.
On 2016-06-13 23:39, Xiao-Yong Jin wrote:
Hello,
I guess the c++ code is calling the wrong macro.
Before r740:
(⊂'abc'){⍺ ⍵}¨3⍴1
abc 1abc 1abc 1
(⊂'abc'){⍺ ⍵}¨4⍴1
abc 1
Hello,
I guess the c++ code is calling the wrong macro.
Before r740:
(⊂'abc'){⍺ ⍵}¨3⍴1
abc 1abc 1abc 1
(⊂'abc'){⍺ ⍵}¨4⍴1
abc 1abc 1abc 1abc 1
After r740:
(⊂'abc'){⍺ ⍵}¨3⍴1
a 1 b 1 c 1
(⊂'abc'){⍺ ⍵}¨4⍴1
INDEX ERROR+
μ-Z__vA_LO_EACH_vB[2] μ-Z[μ-N]←
Excuse me if that wasn’t clear. 1+/⍳5 is the correct behavior. Replacing +
with {⍺+⍵} should give the exact result.
1+/⍳5
1 2 3 4 5
1{⍺+⍵}/⍳5
1 2 3 4 5
NARS is wrong in my opinion.
> On Jun 13, 2016, at 9:47 PM, Christian Robert
> wrote:
>
> How was that outputting *before* svn
How was that outputting *before* svn 740 ?
On 2016-06-13 22:11, Xiao-Yong Jin wrote:
Hello,
It breaks when the left argument is 1. In addition, with the internal macros,
the si stack is polluted.
1+/⍳5
1 2 3 4 5
NARS2000 give the exact same result:
1+/⍳5
1 2 3 4 5
quite stran
Hello,
It breaks when the left argument is 1. In addition, with the internal macros,
the si stack is polluted.
1+/⍳5
1 2 3 4 5
1{⍺+⍵}/⍳5
INDEX ERROR
μ-Z__pA_LO_REDUCE_X_B[5] μ-T←⊂(⊃μ-B1[μ-H;μ-a-μ-M;μ-L])μ-LO⊃μ-T
^ ^
)si
Work like a charm.
[xtian@xtian:/home/xtian] $ apl
__ _ __ __ _____ __
/ // | / // / / / / | / __ \ / /
/ / __ / |/ // / / / / /| | / /_/ // /
/ /_/ // /| // /_/ / / ___ | / // /_
Hi,
I see. Fixed in SVN 742.
/// Jürgen
On 06/13/2016 05:32 AM, Xiao-Yong Jin
wrote:
Hi Jüergen and Christian,
Despite what is in their manual, dyalog seems to treat 1 scalar element vector as a scalar here,
Yes, they work. Thanks.
> On Jun 11, 2016, at 9:29 AM, Juergen Sauermann
> wrote:
>
> Hi Xiao-Yong,
>
> thanks, fixed in SVN 740. I haven't checked )DUMP and )OUT but I suppose
> they work now since the fault was in the tokenizer (which is also used by
> )LOAD and )IN).
>
> /// Jürgen
>
>