[DGD]mappings, use of.

Geir Harald Hansen geirhans at ifi.uio.no
Wed Apr 14 01:29:52 CEST 1999


>     if (restore_object(SOCIAL_FILE) == 0) {
>         socials_wt = (["smile":"$N $vsmile."]);
>         socials_wot = (["smile":"$N $vsmile at $T."]);
>         adverbs = ({"happily"});
>     }

Check the savefile.  Maybe restore_object() succeeds, but the variables
are 'restored' to nil.  I prefer the following:

  restore_object(SOCIAL_FILE);
  if (!socials_wt)  socials_wt = ([ "smile" : "$N $vsmile." ]);
  if (!socials_wot) socials_wot = ([ "smile" : "$N $vsmile at $T." ]);
  if (!adverbs)     adverbs = ({ "happily" });

-- Geir Harald Hansen, geirhans at ifi.uio.no

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



More information about the DGD mailing list