
Dec. 4, 2003
6:40 p.m.
"Andrew Koenig" <ark-mlist@att.net> writes:
An int is a 31-bit integer, INCLUDING sign. One extra bit indicates whether the integer is really a number or, alternatively, a pointer to the rest of the representation.
This is exactly how it's done in Ruby as well. Search for FIXNUM in http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ruby.h?rev=1.95&content-type=text/x-cvsweb-markup Regards, Gisle