Next: Lists

Prev: Data Types

Names

A name is an indirect reference to an object. Coldmud translates names into dbrefs during method interpretation according to the associations made using the administrative function set_name(). A name expression is simply a name token, an identifier or string following a dollar sign ($).

When the interpreter encounters a name expression, it looks up the name to see what dbref it has been assigned by the set_name() function. If no such assignment has been made, then the interpreter throws a ~namenf error; otherwise, the value of the name expression is the dbref assigned to the name by set_name().

You can also use the (non-administrative) function get_name() to look up a symbol as a name.

The administrative function del_name() deletes the association for a name.