develooper Front page | perl.perl6.internals | Postings from April 2002

Re: [APPLIED] core key support

Thread Previous
From:
Dan Sugalski
Date:
April 9, 2002 01:12
Subject:
Re: [APPLIED] core key support
Message ID:
a05101503b8d7abfcd7b7@[63.120.19.221]
At 12:32 PM -0800 4/2/02, Steve Fink wrote:
>With the following comment:
>
>  - Changes KEY to contain a KEY_PAIR* instead of a KEY_PAIR**

This patch is a cool thing, and I'm very glad it's in. Getting hashes 
working should be pretty straightforward soon.

One thing for the next round of patches. Keys should be:

    struct Key {
	KEY_TYPE type;
	union {...} cache;
         struct Key *next_key;
    }

i.e. a linked list. This way pieces of large key chains can be taken 
piece by piece without having to build a new key struct every time.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About