On Sat, Jun 07, 2025 at 09:51:50AM +0200, Patrice Dumas wrote: > I found newSVsv, which seems to copy the SV, including the blessing and > the 'reference' to the HV, this could be an alternative to keeping the > HV in C and calling newRV and blessing each time a reference is needed. > I still need to check if there needs to be an adjustment of reference > counting.
Seems like newSVsv increases the refcount for the HV automatically, which is what we want. I think that I will use newSVsv. The only potential issue I see is that this function isn't much described, possibly because the developpers may want to change its effect someday. -- Pat
