Function: which

Syntax

which(<ident>)

Type

atable

Returns

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

Parameters

Examples

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