Anther thing about debug stack is that it cannot show the correct
line number if the verb is defined by 3 : 0"n or n&$: : (4 : 0)

eg,
t1=: 3 : 0
1
t2''
4
)

t2=: 3 : 0"1
1
2
3
1+'a'
4
5
6
)

   dbr 1
   t1''
|domain error: t2
|   1    +'a'
      dbctx''
@@ t2[0] *v @@ /home/bill/a1.ijs
3 : 0"1
>[0] 1
 [1] 2
 [2] 3
 [3] 1+'a'
      dbstack''
+----+--+--+--+----+------+----+
|name|en|ln|nc|args|locals|susp|
+----+--+--+--+----+------+----+
|t2  |3 |0 |3 |++  |      |*   |
|    |  |  |  |||  |      |    |
|    |  |  |  |++  |      |    |
+----+--+--+--+----+------+----+
|t1  |0 |1 |3 |++  |+-++  |    |
|    |  |  |  |||  ||y||  |    |
|    |  |  |  |++  |+-++  |    |
+----+--+--+--+----+------+----+

However it works if t1 and t2 are

t1=: 3 : 0
1
t2"1 ''
4
)

t2=: 3 : 0
1
2
3
1+'a'
4
5
6
)

   dbr 1
   t1''
|domain error: t2
|   1    +'a'
|t2[3]
      dbstack''
+----+--+--+--+----+------+----+
|name|en|ln|nc|args|locals|susp|
+----+--+--+--+----+------+----+
|t2  |3 |3 |3 |++  |+-++  |*   |
|    |  |  |  |||  ||y||  |    |
|    |  |  |  |++  |+-++  |    |
+----+--+--+--+----+------+----+
|t1  |0 |1 |3 |++  |+-++  |    |
|    |  |  |  |||  ||y||  |    |
|    |  |  |  |++  |+-++  |    |
+----+--+--+--+----+------+----+


-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to