9.0 beta and 8.07 - JQt -Windows 10
M
Sent from my iPad
> On 9 Jul 2019, at 23:32, bill lam <[email protected]> wrote:
>
> what is the JVERSION ?
>
> On Wed, Jul 10, 2019, 1:27 AM 'Mike Day' via Programming <
> [email protected]> wrote:
>
>> Something for Henry, I think.
>>
>> Starting to have a look at Louis' variants on Vadim's approach, I tried
>> using debug on "fastincl" , invoked by ctrl-K.
>>
>> Setting stop on all lines in either fastincl =: cmp fastmax
>> or in fastmax and then running
>> fastincl lines
>> results in
>> "
>> domain error
>>
>> fastincl[header] cmp fastincl
>>
>> "
>>
>> in debug's middle pane,
>>
>> with
>>
>> "
>>
>>> [0] cmp fastincld4B7g0
>>
>> "
>>
>> displayed in the top pane
>>
>> The lowest pane displays:
>>
>> "
>>
>> cmp v +./@E.&>
>>
>> fastincl v cmp fastincld4B7g0
>>
>> "
>>
>>
>> This happens in both J 9.01 beta and J 8.07, under Windows 10 .
>>
>> Debug seems ok however when explicitly running "(cmp fastmax) lines "
>>
>> So it's probably something to do with fastmax being an adverb, but here
>> are
>> Louis' definitions to save hunting for them in the correspondence:
>>
>> fastmax=: 1 : 0
>> B=. C=. 1"_1 y
>> while. +./C do.
>> i=. C i.1
>> B=. 0 i} B
>> B=. -.@:u&(i{y)&.(B&#) y
>> C=. C *. B
>> B=. 1 i} B
>> end.
>> B#y
>> )
>>
>> cmp=: +./@E.&>
>>
>> fastincl=: cmp fastmax
>>
>> debug behaves just the same for
>>
>> fastincl 'abc'
>>
>> so I won't bother defining "lines" here.
>>
>> This is probably known behaviour, but it's new to me!
>>
>> Thanks,
>>
>> Mike
>>
>>
>>
>> ---
>> This email has been checked for viruses by Avast antivirus software.
>> https://www.avast.com/antivirus
>> ----------------------------------------------------------------------
>> 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