If you wanted to take a mutable object and make it immutable and be able to go back again to mutable,
how could you do that?

In particular the part that has me as a smalltalk beginner stumped is how to disallow any messages that would result in a state change while still allowing messages that only read state.

Do you have to handle on a message by message basis? ( Eeek lots and lots of work ) Or is there something you could work into a superclass and use in its descendents? ( ideal for what I need. )
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to