Xeno Campanoli
7/28/2007 10:51:00 PM
Suraj Kurapati wrote:
> Suraj Kurapati wrote:
>> is_machine_64_bit = (2 ** 32).is_a? Fixnum
>
> Hmm, after reading the ri manpage for Fixnum, I found a better way:
>
> (-1.size) is 4 on a 32-bit machine and 8 on a 64-bit machine.
Aren't you gonna get Kernel information for 32 bit if it's a 32 bit
Kernel on a 64 bit machine?
--
The only sustainable organizing methods focus not on scale,
but on good design of the functional unit,
not on winning battles, but on preservation.