Thanks for looking. If you were using earlier versions, I have a guess:
6.02:
result =: 3 : 'undefname' 5
|syntax error
| result=: 3 :'undefname'5
Spaces to the right of the =:, as you remembered. The 'syntax error'
comes because the result of the verb is not a noun, and is signaled
after the verb completes.
9.01:
result =: 3 : 'undefname' 5
|noun result was required
| undefname
In current versions, the error is detected before the verb completes,
and execution is rolled back to localize the error on the failing
sentence. This also applies to sentences ending a T-block.
Henry Rich
On 6/18/2020 12:59 AM, Arthur Anger wrote:
Henry--
It appears that I must apologize. I have discarded the session where my
puzzling error occurred. I have tried to re-create an analogous simple
situation in J 701 and 807, and get only Domain errors.
I now note that the "error gap" appears to the left of the assignment, whereas
I seem to remember it being on the right in the original. This suggests that the value
computation was at fault, even though I thought the cure was due only to changing the
assignment.
--Art
On 17Jun 2020, at 8:00 AM, [email protected] wrote:
Message: 2
Date: Tue, 16 Jun 2020 15:25:09 -0400
From: Henry Rich <[email protected] <mailto:[email protected]>>
To: [email protected] <mailto:[email protected]>
Subject: Re: [Jgeneral] Localization error?
Message-ID: <[email protected]
<mailto:[email protected]>>
Content-Type: text/plain; charset=utf-8; format=flowed
Please exhibit an example of how to produce this syntax error, and what
version of J you are using. I can't make it happen.
Henry Rich
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
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