this seems like a bug at least. tested with 8.05, 8.06 and 8.07.
> 7 ]^:('' -: 0 {:: ]) (1 {. boxopen@]) 2 NB. fine
2
]^:(('' -: 0 {:: ])`(1 {. boxopen@])) 2 NB. should be identical to above
|length error
> ]^:(('' -: 0 {:: ])`(1 {. boxopen@])) ,2
2
the core issue is:
0 {:: 2
|length error
| 0 {::2
0 {:: 1 {. 2
2
the bug though is that v2 should be called before v1 sees its result, and v1
may be reporting the length error as if it were seeing the raw argument?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm