load fails if the current locale contains the global name "script"

13 views
Skip to first unread message

Don Guinn

unread,
Jun 27, 2026, 6:38:59 PM (10 days ago) Jun 27
to fo...@jsoftware.com

If the current locale contains the global name "script" "load" uses that instead of "script" in the "z" locale.

In the session below "load" fails on the second load of the script file defining "script". Somewhat confusing as the script file loads fine for the first test but then fails on the second test.

fread 'c:/users/dongu/j9.8-user/temp/6.ijs'

script=:'xxx'

load 'c:/users/dongu/j9.8-user/temp/6.ijs'

script

xxx

load 'c:/users/dongu/j9.8-user/temp/6.ijs'

|syntax error in load, unexecutable fragment (noun noun)

|to concatenate nouns use a verb such as ,

| fn fl

Press ENTER to inspect

1 load 'c:/users/dongu/j9.8-user/temp/6.ijs'

script=:'xxx'

erase 'script'

1 load 'c:/users/dongu/j9.8-user/temp/6.ijs'

script

xxx

JVERSION

Engine: j9.8.0-beta4/j64avx2/windows

Build: commercial/2026-06-25T01:49:39/clang-19-1-5/SLEEF=1

Library: 9.8.3

Qt IDE: 2.6.3/6.10.3(6.10.3)

OS Ver: Windows 11 Version 25H2 10.0.26200

Platform: Win 64

Installer: j9.8 install

InstallPath: c:/j9.8beta

Contact: www.jsoftware.com

chris burke

unread,
Jun 29, 2026, 8:55:36 PM (8 days ago) Jun 29
to fo...@jsoftware.com
Yes, if you define script in the current locale, load will fail. There
is no simple solution to this. In general you should avoid defining
names that obscure stdlib names.
Reply all
Reply to author
Forward
0 new messages