Dear All,
playing with adverb dbg from my previous post, have encountered one more
anomaly. I can't redefine value of y in suspension mode:
dbgd=: 1 : 0
try.
u y
catchd.
smoutput 'error in monadic case'
throw.
end.
:
try.
x u y
catchd.
smoutput 'error in dyadic case'
throw.
end.
)
13!:0]1 NB. enable suspension
10 20 +/dbgd 1 2 ; 3 NB. evoke dyadic
|domain error: dbgd
| x u y
|dbgd[:1]
y=. 4 5 6 NB. re-define
13!:4'' NB. new y value is used, ok
14 15 16
24 25 26
+/dbgd\ 100 20 ; 3 NB. evoke monadic
|domain error: dbgd
| u y
|dbgd[1]
y=. 200 30 4 NB. re-define
y NB. ensure it's changed
200 30 4
13!:4'' NB. why previous y value is used?
|domain error
| +/dbgd\100 20;3
This error occurs in both J6 and J7:
JVERSION
Engine: j701/beta/2010-03-31/11:40
Library: 7.01.049
Platform: Linux 32
Installer: j701abeta_linux32.sh
InstallPath: /home/jip/j701
JVERSION
Installer: j602a_linux32.sh
Engine: j602/2008-03-03/16:45
Library: 6.02.055
--
WBR
Igor
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm