Dan Bron wrote: > I would warn you away from this pattern if you use or intend to > use the J debugging facilities. The dyad within the monad GetPrice > is anonymous, and consequently atomic from the J debugger's POV; > hence undebuggable. I consider this a defect in the debugger, and refuse to let it impact my code. Note that this defect also matters for code like: verba=:3 :0"1 or verbb=:3 :0&.> etc. When I need to use that aspect of the debugger to isolate a problem with my code, I'm already in a position where I need to be re-writing my code. And the debugger will tell me which specific function is having the problem. So, in that case, I first rewrite the function to make the debugger happy with it, and then use the debugger to find the flaw, and then I fix the problem, test some more, and quite probably rewrite some more based on the outcome of my testing. But you're right that this issue does warrant an occasional warning. Finally note that for SQL, I prefer using stored procedures over inline code. There are times when I can't (mysql doesn't support stored procedures), so sometimes I have to make allowences there, too. -- Raul
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
