Your first =. makes the =: fail.

load runs an explicit verb, so the =. is local then.

Henry Rich

On 12/14/2021 4:29 AM, Igor Zhuravlov wrote:
user@host:~> cat j-user/temp/test.ijs
coclass 'A'
isw=. 1 : '{.@:((1 +./@:~: u)"2)'
coclass 'B'
isw=: 1 : '1 +./@:~: u'

user@host:~> j903/jconsole.sh
    JVERSION
Engine: j903/j64avx2/linux
Beta-w: commercial/2021-12-05T18:30:42
Library: 9.03.08
Qt IDE: 1.9.5/5.12.8(5.12.7)
Platform: Linux 64
Installer: J903 install
InstallPath: /home/user/j903
Contact: www.jsoftware.com
    load '~temp/test.ijs'
|domain error: script
|   isw    =:1 :'1 +./@:~: u'
|[-3] /home/user/j-user/temp/test.ijs

Is executed okay if typed in console not loaded from script.



--
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