François Pinard <pinard at iro.umontreal.ca> wrote: > Yes, of course. Given strings are immutable, an implementation could have: > > ref=str > str=str+str1 > > and have `ref' points to a substring of `str', without copy most of > the time, when `str1' is small. what do you do when you have to reallocate str? </F>