Hi,

At Wed, 24 Dec 2008 04:19:14 +0900,
Marcin Mielki wrote in [ruby-core:20840]:
> Q1: is ObjectSpace the only reason for these modification checks when a 
> copy is created.

The conversion methods like to_str, to_int and so on could be
invoked while the iteration.  Also callcc..

> Q2: is there a more general contract what behavior to expect (throw 
> error or ignore mutation) for such methods ?

It would be case-by-case, I guess.

-- 
Nobu Nakada