2007/8/9, Ronald Fischer <ronald.fischer / venyon.com>:
> Is there a standard way of doing a deep copy of an object (in
> particular, of an array)?

copy_of_your_array = Marshal.load(Marshal.dump(your_array))

> http://www.ruby-doc.org/core/classes/Object.html#M000379 mentions a
> function 'dclone',
> but this doesn't seem to exist:
>
>                 undefined method `dclone'

I've never seen that method. No idea.

Kind regards

robert