
25 Aug
2011
25 Aug
'11
6:32 p.m.
On 11-08-25 01:57 PM, Andrew Coppin wrote:
Does anybody else think it would be *far* more useful if bitSize applied to an Integer would tell you how many bits that particular Integer is using? Especially given that it can vary?
It is useful to know the number of bits used in a value. It is useful to know the maximum number of bits storable in a type. It is useless to conflate the two into one single method. The name "bitSize" is already taken. Come up with another name, and I will agree with you.