From: Erik Veenstra Date: 2006-01-26T06:08:13+09:00 Subject: Re: String#de_inspect (and Kernel#suspicious) > For the object-> string direction, it may be useful to use > amarshal, rather than inspect: > > http://cvs.m17n.org/~akr/amarshal/ > > One advantage is with cyclic references. Using #inspect will > not preserve enough information to reconstruct the reference. % ruby -ramarshal -e 'AMarshal.dump([1,2,3], STDOUT)' v = [] v[0] = Array.allocate() v[0] << 1 v[0] << 2 v[0] << 3 v[0] This idea is really nice, indeed. gegroet, Erik V. - http://www.erikveen.dds.nl/