Contents | Index | < Browse | Browse >
7.8. Name Routines
The following routines all return volatile strings
which contain the requested name.
$name ( $name obj ) -> Returns a volatile string contain-
ing the (possibly multiple-word) name of obj.
Example:
($say "You see no " ($name @Dobj) " here!n")
$vname ( $vname verb ) -> Returns a volatile string con-
taining the name of verb.
Example:
($say "No multiple objects with " ($vname @Verb) "!n")
$mname ( $mname modif ) -> Returns a volatile string con-
taining: the name of modifier modif (if modif is
greater than zero), the name of verb -modif (if
modif is less than zero), or the null string (if
modif is zero).
Example:
($say "The modifier of blue ball is " ($mname blue) "n")
$pname ( $pname prep ) -> Returns a volatile string con-
taining the name of Preposition prep.
Example:
($say "The sentence is:n")
($say ($vname @Verb) " "
($name @Dobj) " "
($pname @Prep) " "
($name @Iobj)
)