Re: Zone/Room limits...

From: Chris Jacobson (fear@technologist.com)
Date: 11/09/98


On 11/9/98 1:06 PM, Andrey Fidrya (andrey@alex-ua.com) stated:

>Btw, is there any reason to use signed short int instead of unsigned for
>storing vnums?

Yes.  You need to be able to represent -1, for 'invalid'.  Of course, you
could always use 65535 instead, but its not as easy to work with,
considering the standard for invalid checks was supposed to be "value ==
NOWHERE", or NOTHING, or NOBODY, and everyone abused the value of -1 and
did "value < 0"

- Chris Jacobson


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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