From: SASADA Koichi Date: 2008-12-09T23:39:29+09:00 Subject: [ruby-core:20442] Re: Leave my open classes alone (was Behavior: autoload calls rb_require() directly) Ken Bloom wrote:: > Even so, where would you get space for the tag from? Ruby's documentation > says that a "Float objects represent real numbers using the native > architecture���s double-precision floating point representation," and a > double is 64 bits on most 32- and 64-bit operating systems. Good point. A method is written in my paper, but it is written in Japanese. This is ruby.h for embed double. http://www.atdot.net/sp/view/e76mbk rb_float_new(), NUM2DOUBLE() and RFLOAT_VALUE() have a trick. It generates 1 bit for Float. However Fixnum consumes 3 bit tags. -- // SASADA Koichi at atdot dot net