On 04/06/2011 03:25 PM, Wolfgang Dann wrote:
I wanted to subclass Association to store a Bookmark. If i understand you right, then i have to always send new when the key changes.
Sets and Dictionaries are not able to store objects or keys (respectively for Sets and Dictionary) that change. When you have a change you need to take out the object (association for Dictionary), change it and put it back.
Usually Associations are considered an implementation detail and you put the Bookmark as the value. You can then define a BookmarkList that includes a Dictionary or LookupTable and automatically manages the key->bookmark association so that the collection stays consistent.
Paolo _______________________________________________ help-smalltalk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-smalltalk
