"Nicholas Van Weerdenburg" <vanweerd / gmail.com> 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.