[DGD] undefined functions

Kent Mein mein at cs.umn.edu
Thu May 10 09:23:22 CEST 2012


I've noticed an issue (or at least its an issue for me) with gurbalib
anyway…

The issue is, if I define some sort of function in the inheritable object code,
say something like this:

int is_wearable(void) {
   return 1;
}

and then inside of say the wear command function I typo things like this:

if (obj->is_waerable()) {   // location of the typo
   obj->do_wear();
} else {
    write("You can't wear a " + str + "\n";
}

Instead of getting an error undefined function call is_waerable, things
just fail silently.  Is this a tunable parameter in dgd or is this something
we would have to implement at the mud lib level?  (seems like it shouldn't
be at that level)

I have typechecking    = 2;  in my mud.dgd file.  

I'm also willing to work on it, if its something that just needs to be done, but I figured I'd ask
first. :)

Kent


More information about the DGD mailing list