On Tue, 4 Dec 2001, Mysidia wrote: >On Tue, Dec 04, 2001 at 04:44:09AM -0800, George Greer wrote: >> >> 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? That'll still work, as long as you don't use 0. Because -1 == 65535 (or 2^31) anyway, with appropriate bit sizes. It's recommended to use the proper variable types though. -- George Greer greerga@circlemud.org -- +---------------------------------------------------------------+ | 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