in reply to Using SV as key in hash
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*).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using SV as key in hash
by liz (Monsignor) on Jul 17, 2006 at 06:16 UTC |