From: ts Date: 2002-01-26T23:03:41+09:00 Subject: Re: Serious Array Bug in Ruby 1.6.6? [ I've modified the quote, difficult to understand with your strange way to quote ;-)] >>>>> "W" == William Djaja Tjokroaminata writes: W> ts wrote: W> Doesn't Object#dup or Object#clone work with *any* object? >> no, W> Well, surely it is defined for all objects, as all objects are derived W> from Object. Whether the result is expected or not, it is a different W> story. At least, it should work with the majority of built-in W> classes. Of course, for custom classes, we are on our own. Well, someone else has given the reason, here just an example pigeon% ruby -e 'p nil.dup' -e:1:in `clone': can't clone nil (TypeError) from -e:1:in `dup' from -e:1 pigeon% Guy Decoux