On Fri, Jan 04, 2002 at 11:00:45PM -0500, Jeff G wrote:
> new P0,PerlHash
> set P0,-6,"foo" # Store the value -6 in key 'foo' of the hash P0
> set I0,P0,"foo" # Recover the value at "foo"

Very, very, cool. However, I'm not convinced that we're going about this
the right way.

Currently, we have vtable operations to retrieve a value by key where
the key's an integer, and to retrieve a value by key where the key's
a string. Of course, different PMC classes will have different ways
of hashing things, so we might need a different vtable operation to
retrieve by float, or by PMC, or ... Do you see what I'm saying?

Basically, we need to retrieve by a generic key structure.

-- 
Disillusion? I can make it for you at home!... Besides, why else did you  
come to the City of Expiring Dreams (apologies to Matthew Arnold)?  
 -- Katherine Kaye, on Oxford.

Reply via email to