syntactically a verb should return a noun. But for your case it return a verb so that it raise a syntax error. compare with this

   foo=: 3 : ']'
   foo 1
|syntax error: foo
|       foo 1


Anssi Seppälä wrote:
Thank you for the helpfull discussion. Originally I had the sequence in a function. I got "syntax error" at the end of the function mean_power. That did no tell much for me and I spent a long time to find what was wrong.

Because I use very rarely such assignment of verbs in my J programs, the first idea I had after realising what is behind this "syntax error" was that I wanted to say to J intepreter temporarily for this application: "Do not accept such verb definitions. Give me a value error instead".

Anssi

At 05:56 3.6.2007, you wrote:
That said, another useful technique for finding
undefined tacit verbs is to bring up the debugger,
and look at a stack trace.  This will identify the
verb whose definition contains the reference to
the undefined verb.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm



--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to