I tried tracing the behaviour but got rather lost! I see what you
mean, but don't know why
it happens. Anyway, I'm trying to improve my program, not J software!
I have a sort of clue - I ran the Lab on "Performance Monitor Utilities"
which I hadn't done for
years, and realised its example uses a function, accpay, which is a
non-ambivalent monad,
ie there's no allowance for missing left argument such as I nearly
always use. The lab's invocation
of showdetail_jpm_ worked fine in the same session where it had failed
for Sav(a).
So I tried removing the default LH-arg bit; here's the new start:
Sav =: monad : 0
NB. 16384 Sav y NB. old dyadic input
NB. :
x =. 16384 NB. force required LH argument
.............
showdetail_jpm_ worked ok!
I wonder why?
Mike
On 20/06/2021 15:49, Raul Miller wrote:
I do not have a copy of j7.01 on any of my current machines. I could
probably install one, but:
If you use the debugger and put a stop on the line which throws the
error for you, what is different about the data there? (The error
comes from trying to index a 2 element array with the index value 2).
Thanks,
--
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