Raul is correct.  Note that this is going to change a little with the next release.

Then, sentences containing syntax error may not run to completion if the syntax error is detected early.

  a =. 1 + 2 (

might fail before the assignment.  Exactly what gets executed after a syntax error is undefined behavior.

Henry Rich

On 12/7/2018 2:47 PM, Raul Miller wrote:
The syntax error after the viewmat result is produced is correct
behavior, as defined by the dictionary.

What happens is that J is parsing the stuff to the left of the ;
(because that might eventually turn into a conjunction, and the way to
find out about that, in the general case, is to parse the rest of the
line and see what happens).

As it happens, after parsing everything to the left of that semicolon,
J finds that it has a noun, and it can't do anything with a noun
followed by a semicolon, so that's your syntax error.

For a more formal treatment of this issue, run J's trace facility on
that sentence.

Thanks,



---
This email has been checked for viruses by AVG.
https://www.avg.com

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

Reply via email to