Andrew Nikitin wrote:
> Actually, in j6xx I can: I can store the value of a name, then
> assing to a name globally, if there is domain error, name is
> local, if there is no domain error, name is global and we need
> to restore its old value globally.

Conceptually, this is a verb to tell if a name has a
local definition:
        isLocal=: [: 0:@". ::1: ] , '=:' , ]

(There's no need to restore the old value if that's what you
used to test.)

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'

-- 
Raul

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

Reply via email to