On Thu, Feb 27, 2003 at 12:00:01AM +0100, Per Hedbor () @ Pike (-) developers forum wrote:
Show me the programming language where 0x80000000 fits in an 32bit integer.
Perl. For instance.
Please note that adding unsigned integers as a type requires you to add a signed bit to the data, or simply use it as the sign bit, thus getting 33bit integers. Why not go for 64bit integers while you're at it?
Because I don't want to waste extra 4 bytes.
Pike is not. Thus, adding a new type for unsigned integers is not only pointless, it defeats the purpose (speeding things up) rather nicely, and will with 99.999% probability slow things down even more than the bignum conversions.
Really? Why it doesn't in Perl? In C? Why not to make pure N-bits integers instead of dynamically converted and expanded types? If I need _exactly_ N bits in integers, how do I do this in Pike, without wasting time and memory?
Regards, /Al