From: Tony Arcieri Date: 2013-04-17T14:34:44+09:00 Subject: Re: Delete method also modifies the original variable --047d7b6dccb0cc729e04da87d766 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Apr 16, 2013 at 9:10 PM, Matthew Kerwin wrote: > There is no general-form solution to creating a deep-copy of a > datastructure in ruby. A (suboptimal) solution for deep copies in Ruby is to use Marshal. It sure would be nice if Ruby had some sort of analogue for structured cloning. -- Tony Arcieri --047d7b6dccb0cc729e04da87d766 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Tue, Apr 16, 2013 at 9:10 PM, Matthew Kerwin <lists@ruby-forum.com> wro= te:
There is no general-form solution to creating a deep-copy of a datastructure in ruby.

A (suboptimal)= solution for deep copies in Ruby is to use Marshal.

It sure would be nice if Ruby had some sort of analogue for = structured cloning.

--
Tony Arcieri
--047d7b6dccb0cc729e04da87d766--