In your example, if you display test you will see that it has been defined
as a conjunction. Which is probably not what you intended.
Try the following where you explicityy ask {{ to create a verb.
t
test=: {{)v
xxx=:'asdf'
xxx
}}
test
3 : 0
xxx =: 'asdf'
xxx
)
test''
asdf
On Thu, Oct 22, 2020 at 2:07 PM Don Guinn <[email protected]> wrote:
> I was sloppy and didn't notice the left argument. Sorry about that. I am
> still getting used to the notation. Looks like the problem had nothing to
> do with my error. Here is a problem where defining test using DD and a
> literal string is used.
>
> NB. This is the script I ran.
> erase 'test'
>
> test=:{{
> xxx=.'outer'
> xxx
> }}
>
> NB. This is what I got when I ran it.
>
> erase 'test'
>
> 1
>
> test=:{{
>
> xxx=.'outer'
>
> xxx
>
> }}
>
> |domain error
>
> | test=:(9 :'
>
> xxx =. ''outer''
>
> xxx
>
> ')
>
> |[-5]
>
>
> NB. When I tried to use the script. I know, not necessary as it already
> failed.
>
> test 'abc'
>
> |value error: test
>
> | test'abc'
>
> test
>
> |value error: test
>
> JVERSION
>
> Engine: j902/j64avx2/windows
>
> Beta-i: commercial/2020-10-20T10:35:42
>
> Library: 9.02.06
>
> Qt IDE: 1.8.7/5.12.7(5.12.7)
>
> Platform: Win 64
>
> Installer: J902 install
>
> InstallPath: c:/j902
>
> Contact: www.jsoftware.com
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm