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

Reply via email to