David Garamond wrote:
>
> <snip>
>
> b) the default method_missing doesn't use inspect, instead just print
> "#<#{o.class}:#{o.id.to_s(16)}>".
>
> Btw, it's not o.id actually, what is it?
>

## 2 * id

o   = Object.new
oid = o.object_id

puts (oid     ).to_s(16)  #-> 183e26a
puts (oid << 1).to_s(16)  #-> 307c4d4
p o            #-> #<Object:0x307c4d4>


I guess it runs through some fixnum conversion code but
it's not broken by it, so why change it :-?


daz