On Mon, Dec 29, 2008 at 12:23 PM, Alexandre Bergel <[email protected]> wrote: > I was wondering whether I am the only one shocked when I see this: > > (Set new add: #b -> 'B'; yourself) includes: #b -> 'B' ====> true > (Set new add: #b -> 'B'; yourself) includes: 'B' ====> false > > (Dictionary new add: #b -> 'B'; yourself) includes: #b -> 'B' ====> > false > (Dictionary new add: #b -> 'B'; yourself) includes: 'B' ====> true > > Dictionary inherits from Set. This means that if Set would have a > contract, it would break in Dictionary. > IMO, we should have > (Dictionary new add: #b -> 'B'; yourself) includes: #b -> 'B' ====> > true > (Dictionary new add: #b -> 'B'; yourself) includes: 'B' ====> false > > No?
No :-). I guess #add: has (should have) no meaning for a dictionary and should not be implemented. -- Damien Cassou http://damiencassou.seasidehosting.st _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
