From: itsme213 Date: 2004-12-06T12:22:35+09:00 Subject: Re: Freezing Variable Assignment "Nicholas Van Weerdenburg" wrote in message > Is there a feature to freeze variable assignment? > > e.g. > a="hello" > a.assignfreeze > a="goodbye" # ===> generates exception I like this, specially if it also covers instance variables. I think Ruby's current freeze is a special case, in which all instance variables of the given object are frozen. It's in the same vein that I think Observable should target a instance variable (an attribute, more generally) of an object, rather than an entire object.