But the return value of hex() usually isn't an integer in the CPU-register sense!
Right, it's an IV, which points to a native integer.
And even when it is, plenty of languages can handle 64-bit integers on 32-bit hardware.
With the appropriate amount of emulation, yes.
Note that perl is written in C, and I don't think that C makes any guarantees for the availability of a 64 bit integer type. Many other language implementations "solve" this problem by ignoring platforms or compilers that don't do what they want, but perl's focus is usually stronger on portability.
There's no law that states that all variables must fit into a single CPU register. (How would strings ever work if that were the case?)
Sure there's no such law, but if they don't, they are generally not as efficient.
In reply to Re^3: Is there a 64-bit hex()?
by moritz
in thread Is there a 64-bit hex()?
by kornerr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |