for the verb,
f=: 4 : 0
try.
try. 3+y catchd. *:x catch. %:x end.
catch.
'x and y are both bad'
end.
)
13 f 'a'
3.60555
13!:0[1
13 f 'a'
|domain error: f
| 3 +y
|f[:1]
If I read correctly, precedence is: catch > catchd > catcht, so that the catch
clause alone will trap all error no matter if there are catchd or catcht or
debug flag. Also, at most one catch/catchd/catcht clause will be invoked. Am I
missing thing?
--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm