From: "Pablo Q." Date: 2008-09-04T07:00:47+09:00 Subject: Re: Can a Ruby program determine whether it's running on a 32-bit or 64-bit system? ------=_Part_23723_21433029.1220479583006 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I got 4 on 64bit Windows Server. That doesn't mean that it depends if it was built on 64bit or 32bit, I mean ruby core. 2008/9/2 Suraj Kurapati > Eric Promislow wrote: > > Can a Ruby program determine whether > > it's running on a 32-bit or 64-bit system? > > Yes. Look at the result of calling the 'size' method on a Fixnum; it > will be 4 on 32-bit machines, and 8 on 64-bit machines. > > >> 0.size > => 4 > -- > Posted via http://www.ruby-forum.com/. > > -- Pablo Q. ------=_Part_23723_21433029.1220479583006--