which(<ident>)
atable
The atable in which an identifier resides, or null if the identifier is not in the current atable search path. See atable.search_path for details of atable search paths.
This function is really only of use for debugging purposes
<ident>
Name of the identifier
to be queried. All atables in the current search
path are examined and the first one containing <ident>
is returned.
This example creates a local identifer. A subsequent call to which will detect it in the local atable.
numeric a tell which(a);# Will print local
The next example is similar but creates a local identifer pi with the same name as a global identifer. Subsequent calls to which will detect it in the local atable, then in the global atable.
numeric pi tell which(pi);# Will print local delid pi tell which(pi);# Will print global