I entered this into a new session:

N=:0

dv =: {{
   if. 20 < N=: N+1 do. throw. end.
   echo y
   ([echo) (];(>:x) dv [)/\ |.x;}.y
}}

t=:'.'
ast=:t;(t;t);(t;(t;t);t);(t;(t;t;t);(t;t;t);t)

0 dv ast

I got the result

+-+-----+-----------+-+-------+-------+-+
|.|+-+-+|+-+-----+-+|.|+-+-+-+|+-+-+-+|.|
| ||.|.|||.|+-+-+|.|| ||.|.|.|||.|.|.|| |
| |+-+-+|| ||.|.|| || |+-+-+-+|+-+-+-+| |
| |     || |+-+-+| || |       |       | |
| |     |+-+-----+-+| |       |       | |
+-+-----+-----------+-+-------+-------+-+
+-+
|.|
+-+
++
||
++
...about 18 repetitions...
++
||
++
|uncaught throw.: dv
|   ([echo)    (];(>:x)dv[)/\|.x;}.y


I then ran

   t=:'.'
   ast=:t;(t;t);(t;(t;t);t);(t;(t;t;t);(t;t;t);t)
   dv =: {{
   if. 0=#y do. x return. end.
   (];(>:x) dv [)/\ |.x;}.y
}}
   0 dv ast
|stack error: dv
|       (];(>:x)dv[)/\|.x;}.y



I am running my development version under jconsole.  I haven't changed anything related to the stack.  Can you make it crash under jconsole?

Crashes caused by recursion used to be a problem but I thought we had conquered them.

Henry Rich


--
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to