mruby/mruby — pull request #316 by masamitsu-murase (2012-06-24 08:24:21+00:00)
Title: Modify Kernel#clone and Kernel#dup

This patch includes modification about 'iv' and 'mt' handling when 'Kernel#clone' or 'Kernel#dup' is called.

* Hash for instance variables, 'iv', should be copied when an object is cloned or duplicated.
* Hash for method of singleton class should be copied when an object is cloned.

If this patch is applied, _make test_ fails because of issue #313,
so please disable _Struct_ feature or apply #313 before checking this patch.

By the way:
Are ISO part numbers in 'test/t/kernel.rb' right?
I think that ISO numbers of instance methods should not be '15.3.1.2.\*' but '15.3.1.3.\*',
but I'm not sure because I'm referring to [ISO Ruby draft](http://www.ipa.go.jp/osc/english/ruby/).
I'm waiting for my bonus to buy spec. :-P