Hello group,

I have been working in java and ruby is new to me. While trying some
hands on, I could not understand the Hashing done in ruby.

I created a class A and called hash function on the class.

1> A.hash
2> A.new.hash

While A.hash was giving same Fixnum every time, second statement
generated different values.

Question
a. What is the difference between these two calls.
b. In the second statement, because the state of A's object is same
every time, I suppose it should return same values.
-- 
Posted via http://www.ruby-forum.com/.