[DGD]inherit_program() called twise
boris
boris at locos.com
Tue Oct 31 12:39:03 CET 2000
Hello !
I wondering if it is normal for inherit_program() in driver object to be called twise each time an object (that inherits something) is compiled.
look at the following code:
file /system/driver.c:
void initialize(){
compile_object("/system/test");
}
object inherit_program(string file, string path){
object tmp;
path = "/inherit/"+path;
tmp = find_object(path) ;
if (!tmp) tmp = compile_object(path) ;
send_message("program "+file+" inherits "+path+"\n");
return tmp;
}
[...rest of the functions are omitted...]
file /system/test.c:
inherit "foo";
and file /inherit/foo.c:
void bar(){
int i;
i=1;
}
when i startup DGD (v 1.1.100) I get following output on the console:
program /system/test inherits /inherit/foo
program /system/test inherits /inherit/foo
Is this a bug, or do I do something wrong ? A also noticed that while compiling some rare objects inherit_program() is called only one time. If it's not a bug, what is the logics behing this behavior ?
t.i.a.
Boris
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list