James Gray wrote:

> Notice how clone() didn't call initialize() and it did copy the
> instance variable.  Calling the constructor could change things
> though, as I've shown here.
> 
> clone() also duplicates some of Ruby's internal state, like whether or
> not an object is frozen?().  Calling new() would make a fresh new
> object though and thus lose such details.


Hi James,

Thank you so much for your time to explain it so details. Your are 
really an expert on Ruby(from my point of view).


Li
-- 
Posted via http://www.ruby-forum.com/.