"def" is assigned a strange value even before "abc" is run. Defining unsing
explicit instead of direct definition properly has "jkl" undefined until
after ":ghi" runs. "ghi" got defined even though "ghi" is only a local name.
names''
abc=:{{def=:y}}
def
┌─┐
│:│
└─┘
abc
┌─┬─┬──────┐
│3│:│def=:y│
└─┴─┴──────┘
abc 1 2 3
1 2 3
def
1 2 3
ghi=:3 : 'jkl=:y'
jkl
|value error: jkl
ghi
┌─┬─┬──────┐
│3│:│jkl=:y│
└─┴─┴──────┘
ghi 4 5 6
4 5 6
jkl
4 5 6
erase nl ''
abc=:{{def=.y}}
def
┌─┐
│:│
└─┘
JVERSION
Engine: j9.5.0-beta8/j64avx2/windows
Build: commercial/2023-11-27T11:54:21/clang-16-0-6/SLEEF=1
Library: 9.5.5
Qt IDE: 2.5.1/6.2.4(6.2.4)
OS Ver: Windows 11 Version 2009 10.0.22635
Platform: Win 64
Installer: j9.5 install
InstallPath: c:/j9.5
Contact: www.jsoftware.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm