[E-Lang] Immutable map operations

Bill Frantz frantz@pwpconsult.com
Mon, 26 Mar 2001 15:09:18 -0800


At 9:04 AM -0800 3/26/01, Tyler Close wrote:
>Bill wrote:
>> At 3:04 AM -0800 3/23/01, Tyler Close wrote:
>> >Dean wrote:
>> >> 		map withoutAll(keys)
>> >
>> >	map & ~map
>>
>> The concept of ~map seems to mean, a map which has all the
>> possible keys
>> that aren't in map.  As an abstraction tied tightly to & it
>> makes a weird
>> kind of sense.  As a stand-alone operator the thought of
>> implementation
>> makes me cringe.
>
>;) It of course wouldn't be implemented. I am relying on E's operator
>combination powers to turn "& ~" into mask() (or its equivalent).
>
>As to the weirdness, I am sure you've written bit masking code before.
>Are you prejudiced against letting your bits become objects? ;)
>
>Tyler

Sorry.  I hadn't seen the above when I asked about what is B after B := ~A;

Cheers - Bill


-------------------------------------------------------------------------
Bill Frantz       | Microsoft Outlook, the     | Periwinkle -- Consulting
(408)356-8506     | hacker's path to your      | 16345 Englewood Ave.
frantz@netcom.com | hard disk.                 | Los Gatos, CA 95032, USA