Oh! Duh. I was confused. (0!:0) directly executes the string (or file).
Much clearer now. Thank you.
Raul Miller wrote:
>example=: 3 :'echo 1'
>0!:0'example'
>0!:0'example 0'
> 1
>
> Put different: when you evaluate a bare name which references a verb,
> the result of that execution
example=: 3 :'echo 1'
0!:0'example'
0!:0'example 0'
1
Put different: when you evaluate a bare name which references a verb,
the result of that execution is the named verb. You have to give the
verb an argument to execute it.
Also:
a=. 3
0!:0'a'
a
3
0!:0'a=. 4'
a
(But, al
Say we have a file ~home/script.jis with the following contents:
a=. 'bar'
and start a J session:
a=. 'foo'
verb=. 0 :0
a=. 'baz'
)
a
foo
0!:0 http://www.jsoftware.com/forums.htm
The latest beta has changed the behaviour of ;: in a way that crashes my
JOD build.
The key problem can be seen with this simple example:
line=. 'c=. +./\"1 c > ~:/\"1 y. e. '
y =. ;: line
t =. ;\ y NB. builds a char table
Attempts to ;: t "vanishes J" on Win 10 systems.
;: applied
Jd release 4.33 available:
https://code.jsoftware.com/wiki/Jd/Release
--
For information about J forums see http://www.jsoftware.com/forums.htm