Discussion:
[Bug-apl] Error in error message INDEX ERROR
Elias Mårtenson
2017-03-29 05:29:05 UTC
Permalink
When displaying an index error, the error message doesn't take ⎕IO into
account.

To reproduce:

* x ← ⍳10*
* x[0]*
INDEX ERROR+
x[0]
^^
* )more*
⎕IO=1 offending index=-1 max index=10

The offending index should be 0 here.

Regards,
Elias
Juergen Sauermann
2017-03-29 14:26:59 UTC
Permalink
Hi Elias,

thanks, fixed in SVN *914*.

/// Jürgen
When displaying an index error, the error message doesn't take ⎕IO
into account.
*
*
* x ← ⍳10*
* x[0]*
INDEX ERROR+
x[0]
^^
* )more*
⎕IO=1 offending index=-1 max index=10
The offending index should be 0 here.
Regards,
Elias
Loading...