Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: Using SV as key in hash

by liz (Monsignor)
on Jul 17, 2006 at 06:16 UTC ( #561679=note: print w/replies, xml ) Need Help??

in reply to Re: Using SV as key in hash
in thread Using SV as key in hash

I want to say that the keys to an HV are always stringified and kept as char*, not as SV*s.
Well, that's just it. There is a provision in hv.c to actually have an SV as the key (rather than a char *). The HeSVKEY_set macro is supposed to be doing that.

A good starting place might be to look at what Tie::RefHash does
I'm afraid that Tie::RefHash doesn't have any XS component to obtain any inspiriation from ;-(


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://561679]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2017-04-28 06:45 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (519 votes). Check out past polls.