Hi,
I am sayng that a mechanism exist and may be suitable (or not).
The actual limits (array size in printed values) would need to be added.
/// Jürgen
On 04/30/2014 05:30 PM, Elias Mårtenson wrote:
Are you saying that this limit exists, or that it's something that
would have to be implemented?
Regards,
Elias
On 30 April 2014 23:29, Juergen Sauermann
<juergen.sauerm...@t-online.de <mailto:juergen.sauerm...@t-online.de>>
wrote:
Hi,
maybe some ⎕SYL limit could work. Currently we have such limits on
the depth of the SI,
on the number of values, and on the number of ravel bytes. This
was to limit infinite recursion of
user-defined functions. When such a limit is reached then an
ATTENTION is thrown and you can decide
to continue (→'') or to escape (→) or to change the value for example.
/// Jürgen
On 04/30/2014 04:35 PM, Elias Mårtenson wrote:
Sometimes, I accidentally make a mistake in interactive mode
that causes GNU APL to try to render a very large array to the
screen. This can cause the pretty-printer to essentially hang
for very long amounts of time, and this operation can't be
interrupted. I usually have to kill the APL session, losing
the entire workspace.
Would it make sense to have a parameter that controls the
largest value that will be displayed in an interactive
session. Too large arrays could be displayed using for example
the first few rows and some kind of symbol or message
indicating that the output has been truncated.
Something like "...remaining rows have been truncated (⍴ =
5837 23)" would be neat.
This could have saved me numerous times.
Regards,
Elias