[squeak-dev] Re: Ideas about sets and dictionaries
Randal L. Schwartz
merlyn at stonehenge.com
Thu Nov 12 01:25:53 UTC 2009
>>>>> "Andreas" == Andreas Raab <andreas.raab at gmx.de> writes:
Andreas> Seriously, how *would* you address this problem if you weren't trying to make
Andreas> it fit exactly?
I like the proposal that each set have an additional instance var that gets an
"Object new" stuffed in it to indicate what "nil" does today, for that
*particular* set. That seems relatively cost effective *and* space effective.
Every "isNil" for "this slot is empty" just becomes "== myEmptyVal".
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
More information about the Squeak-dev
mailing list
|