I wrote:
> Conceptually, this is a verb to tell if a name has a
> local definition:
>       isLocal=: [: 0:@". ::1: ] , '=:' , ]
...
> However, in practice, I find that this gives me a stack
> error when I think it should return 1.
> For example:
>       3 :'isLocal y','y'

I don't know what was wrong yesterday, but I am no longer
experiencing those stack errors.

   3 :'isLocal y','y'
1
   3 :'isLocal y' 'x'
1
   3 :'isLocal y' 'a'
0

As long as the argument to islocal is a valid name, I can't
see any reason why I should have gotten a stack error.

-- 
Raul

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to