replace_program.html

final_realms_fluffos_v1/lib/doc/man/html/efuns/system/replace_program.html · 1.3 KB

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

<HEAD> <TITLE> replace_program - replaces the program in this_object() </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> replace_program - replaces the program in this_object() </H1> </center>
<p>
<b> void replace_program( string str ); </b>
<p>
replace_program() replaces the program in this_object() with that of an 
object it inherits.  The string argument is the filename of the object 
whose program is to be used.  Once the replacement takes place, the current 
object effectively becomes a clone of that other object, but with its 
current filename and global variable values. The program is not actually 
replaced until the current execution is completed.
<p>
Note that one effect of this is that all functions defined in the object
no longer exist, being replaced by the functions in the inherited program,
so this routine should not be called if one of those functions might be
called later (and in particular, create() needs to exist if you intend to
clone from the object).
<p>
<HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim>  Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/">  Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS>

Site Stats

Snippets: 1791
Codebases: 571