Gratuitous handwaving here since it's been ages since I mucked with XS, but . . .
I want to say that the keys to an HV are always stringified and kept as char*, not as SV*s. A good starting place might be to look at what Tie::RefHash does and then implement something similar in your XS (possibly something like keeping your own internal mapping of char* to original SV*).
In reply to Re: Using SV as key in hash
by Fletch
in thread Using SV as key in hash
by liz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |