Tim Roberts wrote in post #1053689: > Robert Klemme <lists / ruby-forum.com> wrote: >>end > In a garbage collecting system, how could you possibly assume that the > location of "password" will not have changed in the interim? I am not sure I understand what you mean by that. Do you mean that copy on write might have the effect to keep the string still in memory referenced through some other String instance? That could be. But that is true for the original approach with StringIO - which is more complicated - and suffers the same deficiencies. :-) > You don't > have enough visibility into the "innards" to assume that. Yes, that's certainly true as long as you stay in Ruby land. > Indeed, I believe this is an unsolvable problem in a language like Ruby. > You'd have to do this all in C. Probably so, yes. Kind regards robert -- Posted via http://www.ruby-forum.com/.