From: Jonas Pfenniger Date: 2007-01-09T20:36:30+09:00 Subject: About Strings and reference of strings ------=_Part_61747_7857529.1168342586671 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, while writing a simple syslog message parser, something struck me and now I would like to know : What happens internally if you make a new string from a range of another string ? You have a new String object. But what happens to the internal data ? Is the char range copied to the new string object or is a reference created to the range in the old string ? If the data is copied over, I propose to introduce a new RefString Class as a C extension that would typically be used by parsers and tokenizers. Cheers, zimbatm ------=_Part_61747_7857529.1168342586671--