> From: Markus Schmidt-Gröttrup
>
> Interestingly
>
> /:~"0 'ab'
>
> works
>
> /:~"0 'abc'
>
> crashes
Actually, although it doesn't crash J, /:~"0 'ab' doesn't "work".
That is to say it doesn't return the expected result, and after executing the
sentence, the J session can no longer be closed normally.
/: 'a'
0
/: 'b'
0
(/: 'a'){ 'a'
a
'a' /: 'a'
a
/:~ 'a' NB. should be: a
a. i. /:~ 'a'
0
/:~ 'b' NB. should be: b
/:~ 'ab' NB. OK
ab
/:~"0 'ab' NB. should be: ab
a. i. /:~"0 'ab'
0 0
|limit error: wdhandler_0_ NB. result of trying to close window
| wdhandler_0_''
There also seems to be an issue with sorting the rank 0 integer: 1
/:~ 0
0
/:~ 2
2
/:~ 42
42
/:~ 1 NB. incorrect
0
(/: 1){ 1
1
/:~ ,1
1
These issues are still present in J7.01
>
> Sherlock, Ric schrieb:
> >> From: David Ward Lambert
> >> m2=: /:~"_1
> >> m2 ~.'9875431165542228664332'-.'2'
> >> Segmentation fault
> >> $
> >>
> >>
> >
> > Or just:
> > /:~"_1 'abcdefg'
> >
> > Or:
> > /:~"0 'sdflaasdfs'
> >
> > "J stopped working"
> >
> > JVERSION
> > Installer: j602a_win.exe
> > Engine: j602/2008-03-03/16:45
> > Library: 6.02.049
> >
> > Only seems to fail for rank 1 character arrays.
> >
> >
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm