On 21 March 2013 10:50, Shota Fukumori (sora_h) <sorah / tubusu.net> wrote:

> hi,
>
> On Thu, Mar 21, 2013 at 9:03 AM, Charles Oliver Nutter
> <headius / headius.com> wrote:
> > My question for ruby-core: at what point did you decide to make hash
> > for e.g. nil not be a single value (it was "4" in 1.8.7 and
> > different/random in 1.9.3+), and why did you do it?
>
> Wait, `nil.id` returns NoMethodError, `nil.__id__` returns '4' (1.9.3)
> or '8' (2.0.0+),
> not a random value.
>

In 1.8, nil.hash => 4
In 1.9, nil.hash => random Fixnum, e.g. 192286870168610551
Ditto 2.0

-- 
  Matthew Kerwin, B.Sc (CompSci) (Hons)
  http://matthew.kerwin.net.au/