9 is internal and will not be documented. I will try to get it out of
the error typeout in future betas.
xxx=.'inner' {{ret=.y;xxx }}xxx
failed because the {{ }} is a monad and you are executing as a dyad.
Nothing to do with linefeeds.
You are running this from a script and the line number shown is the
number of lines the script has read when the failure occurs.
Henry Rich
On 10/22/2020 9:06 AM, Don Guinn wrote:
Where did the 9 come from? Looks like 9 : is a new type of explicit
definition. Will it be documented?
Also how are we to interpret the line number? Looks like the error was on
line 2.
xxx=:'outer'
test=:3 : 0
ret=.'middle'
xxx=.'inner' {{ret=.y;xxx }}xxx
ret
)
test ''
|domain error: test
| xxx=.'inner' (9 :'ret =. y ; xxx')xxx
|[-7]
NB. Added line feeds and it works properly.
xxx=:'outer'
test=:3 : 0
ret=.'middle'
xxx=.'inner'
{{
ret=.y;xxx
}} xxx
ret
)
test ''
middle
test
+-+-+-----------------------------+
|3|:| ret=.'middle' |
| | | xxx=.'inner' |
| | |({{ ret =. y ; xxx }} xxx|
| | | ret |
+-+-+-----------------------------+
----------------------------------------------------------------------
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