Dictionaries broken in 3.9a

Louis LaBrunda Lou at Keystone-Software.com
Mon Sep 19 16:14:51 UTC 2005


I don't know about VW but sets are often implemented (VAST) with nils as
empty place holders as a memory allocation efficiency but the nils are not
considered part of the set or the count of items in the set.  So:

Set with: nil

and 

Set new
	add: nil;
	yourself

might create valid sets but I expect they are empty.

Lou


On Sun, 18 Sep 2005 14:47:48 -0500, Andres Valloud <sqrmax at optonline.net>
wrote:

>Hello Andreas,
>
>AR> That's hillarious! In particular considering that VW allows nil in
>AR> sets...
>
>The expressions
>
>  Set with: nil
>
>and
>
>  Set new
>    add: nil;
>    yourself
>
>answer an empty set in VW 7.2.1.  Has this changed in VW 7.3.x?
-----------------------------------------------------------
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com




More information about the Squeak-dev mailing list