I'm confused. If the verb is undefined then it would not appear in the list produced by "nl 3" so it would never be tested for. And what if the desired verb is not defined in the current locale but is in the path for the current locale? So the question remains - how does one determine the names of the needed verbs?
On 6/2/07, Raul Miller <[EMAIL PROTECTED]> wrote:
On 6/2/07, Anssi Seppälä <[EMAIL PROTECTED]> wrote: > The problem is that if I accidentially forget to define ie PTCmax, J > does not inform this by "value error". Instead J builds an function > construction PEmax and goes to the next line. So it is sometimes very > difficult to find the error from a long skript. I wonder if somebody > else has met this difficulty and found ideas to avoid such errors. You might place at the bottom of your script a test for undefined verbs. For example: 3 :0'' for_verb.nl 3 do. verb=.;verb try.verb f. catch. smoutput 'Invalid ',verb end. end. i.0 0 ) Or, if you prefer, first give it a name then run it. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
