From: Ross Bamford Date: 2005-12-17T21:52:45+09:00 Subject: Re: String#dump and quotes On Sat, 17 Dec 2005 06:42:18 -0000, Hal Fulton wrote: > Daniel Berger wrote: >> Just out of curiosity, why are double quotes added to the start and end >> of the string when doing String#dump? I can see where it's happening >> in string.c, but I don't understand the purpose. > > I think it's just for looks, to emphasize that it's a string. > Like String#inspect. > > FWIW, I think if you eval a dump, you get the original string back. > I *think* that's correct. But it may be just a side effect. > I assumed that _was_ the point of the quotes and the escaping it does ? -- Ross Bamford - rosco@roscopeco.remove.co.uk