mirror of
https://github.com/ldmud/ldmud
synced 2026-08-12 14:26:05 -04:00
When lfun or variable objects are created, we need to make sure, the indices are adjusted if a replace_program() is in progress. Just like closures we create a protector structure that will be processed after the replace_program().
10 lines
247 B
C
10 lines
247 B
C
/* This is for a test to check, whether the indices
|
|
* are adjusted after a replace_program().
|
|
*/
|
|
inherit "inh"; /* Has one function and variable. */
|
|
inherit "testob"; /* The final program. */
|
|
|
|
void create()
|
|
{
|
|
replace_program("testob");
|
|
}
|