From: "Wolfgang Nádasi-Donner" Date: 2007-12-07T23:53:12+09:00 Subject: Re: issue with Date class freeze murphy schrieb: > Yukihiro Matsumoto wrote: >> require 'Date' >> d = Date.new >> d.freeze >> d.to_s # <--- this line fails >> >> Date objects are modifies itself to cache calculated result. Since >> no other self-modifying methods are exposed, you don't have to freeze >> it in general. > I would still consider it a bug. I think that under this circumstances the error should occur when applying "freeze", and not when using "to_s" for a frozen object. If I should never freeze a Date object, then I want to get an appropriate error message when applying "freeze", and not later when using other methods of the object. Wolfgang N��dasi-Donner