There's actually several issues here, one being the parsing issue
Henry has highlighted.
Another is a difficulty in reproducing the problem:
f=: {{ GLOBAL=: 'global defined here' }}
GLOBAL [ f''
|domain error in GLOBAL, executing monad GLOBAL
| GLOBAL[f''
GLOBAL [ f''
global defin
This follows the parsing rules.
f is executed when the pattern
N V V N
is seen on the execution stack. GLOBAL has already been stacked at that
point, as an undefined verb. When later GLOBAL is to be executed, its value
has been changed to a noun. That pun is disallowed.
Henry Rich
On Sun, Dec
$ ijconsole
f=: {{ GLOBAL=: 'global defined here' }}
GLOBAL [ f''
|domain error in GLOBAL, executing monad GLOBAL
| GLOBAL[f''
GLOBAL [ f''
global defined here
JVERSION
Engine: j9.5.0-beta9/j64avx2/linux
Build: commercial/2023-12-06T14:16:14/clang-11-0-0/SLEEF=1
Library: