#4 byte int problem
21-Jul-93 13:16:34
Sb: #7166-#4 byte int problem
Fm: Michael Brennan 72370,1153
To: Alan Fargusson 70751,2436
Re: "Yea, I saw your message about the MemCheck library. One problem with 4
byte ints is that everyone has to agree to do it."
I see so many people remarking or complaining about problems with 2 byte versus
4 byte ints. (Back before Think offered a 4 byte int, many bitched about it
complaining that it was incompatible with MPW, etc.)
For my part, I religiously avoid using ints in my code. If I want a 2 byte int,
I use a short. If I want a 4 byte int, I use a long. Problem solved. Down with
ints!
Of course, if you're using a library that is already using ints, you're kind of
stuck. But I thought I'd toss in my 2 cents worth anyway. 🙂