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

Reply via email to