From: Kurt Stephens Date: 2009-12-02T08:42:41+09:00 Subject: [ruby-core:26987] Re: Caching #to_s for immutables (and a possible future for constant-folding) [with patch v2] Nikolai Weibull wrote: > On Tue, Dec 1, 2009 at 18:19, Yusuke ENDOH wrote: > >> How about if #to_s returns, instead of a frozen String itself, a mutable >> String that is duplicated from the cached frozen String? > > Couldn���t one delay duplication until mutation? > If Ruby passed arguments by name, not value... :).