View Single Post
Old 11/11/07, 6:09 PM   #93 (permalink)
GSH
Piston Honda
 
Human Paladin
 
Skywall
Originally Posted by Dolohov View Post
I'm wondering why they went with a signed long to represent a value that can't be negative. An unsigned long would double the gold limit.
Signed values allow for easier error detection. If you somehow end up with negative gold, you know something went wrong somewhere, and you can backtrack or reverse the transaction. In a perfect world it's not necessary, but it's very useful.
 
User is offline.