From: Brian Candler Date: 2009-01-22T20:23:14+09:00 Subject: Re: String doesnt auto dup on modification RK Sentinel wrote: > I guess I'll just have to remember not to modify a string I take from > another class. Or as was said earlier on: simply don't use destructive string methods unless you really have to. Pretend that all strings are frozen. You can enforce this easily enough in your unit tests: e.g. you could pass in strings that really are frozen, and check that your code still works :-) -- Posted via http://www.ruby-forum.com/.