[DGD]Auto inherit files

Par Winzell zell at skotos.net
Wed May 16 02:38:01 CEST 2001


 > Hi i want to put some files in a dir and inherit all the files in 
 > player.c!!
 > 
 > but i don't know how to do that!!
 > 
 > i try:
 > 
 > files=get_dir("/cmd/player/");
 > for(i=0;i<sizeof(files);i++){
 > inherit files[i];}
 > 
 > but i get a syntax error in the inherit!! =/
 > how can i do that??

You can't. It's not a good idea anyway; inheritance is powerful
enough that I think you want to be explicit about what you make
part of yourself. You can use a

	call_other("/cmd/player/" + verb, args...)

solution if you really want to do what I think you are trying
to do.

Zell

List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list