What is more alarming, imo, is that:

(in both j701 and j801)
   /:~2
2
   /:~'p'
p
   /:~'pa'
ap
   /:~'p'
     NB. empty result!



On Sat, Apr 11, 2015 at 9:00 PM, Henry Rich <henryhr...@nc.rr.com> wrote:

> Don't expect this to be fixed in J804.  There are many small interpreter
> bugs and no organized effort to repair them AFAIK.
>
> This bug is similar to the previously-noted bug #86 which was that the
> result was atomic rather than a list for equal Boolean values.
>
> On my system, which is J32, /:~1 is 0.
>
> Henry Rich
>
>
> On 4/11/2015 1:54 PM, robert therriault wrote:
>
>> So the fix may already be in process.
>>
>> The versions that I have found with the issue are:
>>
>> j602/2008-03-03/16:45 which is not surprising since it is not a current
>> version and
>>
>> j803/2014-10-19-11:11:11 in the jhs environment on my mac, which is
>> certainly more current, although the whisperings suggest j804 may not be
>> far off.
>>
>> Cheers, bob
>>
>> On Apr 11, 2015, at 10:29 AM, 'Pascal Jasmin' via Programming <
>> programm...@jsoftware.com> wrote:
>>
>>  actually, in Jqt 8.03
>>>
>>>   1 /: 1
>>> 1
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From: robert therriault <bobtherria...@mac.com>
>>> To: Programming forum <programm...@jsoftware.com>
>>> Cc:
>>> Sent: Saturday, April 11, 2015 1:16 PM
>>> Subject: [Jprogramming] Results of 1/:1
>>>
>>> Just spotted a question on stack overflow from Zhe Hu about the
>>> behaviour of 1/:1
>>> http://stackoverflow.com/questions/29580291/j-sort-
>>> function-1-1-returns-0
>>>
>>>     2/:2 NB. expected result
>>> 2
>>>     1/:1 NB. expected 1 as the result
>>> 0
>>>
>>> Also,
>>>
>>>     #$ 2 /: 2 NB. result is list as expected
>>> 1
>>>    #$ 1 /: 1 NB. result is atom, not a list as expected
>>> 0
>>>
>>> I don't see the reasons that 1/:1 would return the atom 0 as a result,
>>> but that does not mean there one does not exist. :)
>>>
>>> Cheers, bob
>>>
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>>  ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to