ref_d

tmi2_fluffos_v2/lib/doc/daemons/ref_d · 601 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

This daemon is inherited by ref commands (see "help refs")

mixed resolv_ref( mixed a )
  if it can interpret <a> as a ref, it returns the variable it refers to
  else it returns <a>

void set_ref( string ref_name, mixed ref_contents )
  sets reference <ref_name> to variable <ref_contents>

mixed resolv_str( string a )
  converts from string to variable (ie the opposite of "identify")
  eg resolv_str( "([ fish : 42 ])" ) == ([ "fish" : 42 ])

mixed ref_ob( mixed a )
  if it can interpret <a> as an object in any way, it returns the object
  else it returns <a>

Documented by Pallando (93-08-23)

Site Stats

Snippets: 1791
Codebases: 571