Re: What should Spec Procs return?

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 03/31/98

Pure Krome wrote:
> What should spec procs return - FALSE or TRUE.

What kind of question is that?  Do you have selective blindness or
some kind of phobia that is stopping you from looking at the large
number of existing spec-procs?  RTFC.

And, just to make this message not completely worthless: here's a
hint, if the spec-proc fails horribly, doesn't do anything, and you
want whatever command that caused the thing to trigger to be run,
return FALSE.  If it worked even the tiniest little bit, then you
want to return TRUE.

  blah Spec
    if (bad conditions for this spec-proc)
      return FALSE;
    if (spec-proc is supposed to run, but there's an error)
      return TRUE;
    return TRUE;


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST