It's not a bug ... the references are copied by value (don't know what the big deal is ... it's the same thing happening in Java), the cloning done on the basic collections is shallow (again, same thing happening in many other languages) and the basic types like Fixnum are immutable.
When learning a new language, after playing around with code-snippets I then usually read the language's reference.
When learning a new language, after playing around with code-snippets I then usually read the language's reference.