Re: virtual/real variable types

From: Mysidia (jmhess@i-55.com)
Date: 12/04/01


On Tue, Dec 04, 2001 at 04:44:09AM -0800, George Greer wrote:
> I finally weeded out all of the "-1 = not-exist" cases for rooms, mobiles,
> and objects by realizing that if I changed "room_vnum" and friends to
> unsigned variables the compiler would helpfully point out all the cases for
> me.  So now I'm left considering whether or not to keep them unsigned.
>
> Argument for signed variables:
> * Custom code assuming "-1" still works.

What about custom code that uses int instead of room_vnum or
sh_int instead of room_rnum and assumes -1 still works for
invalid vnums/rnums?

-Mysid

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/24/03 PDT