This repository was archived by the owner on Jun 1, 2023. It is now read-only.
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
Keep SPECIAL immortals in arrays, esp. YES, NO #413
Open
Description
The parser keeps SV_YES, SV_NO and friends in arrays asis. But when converting at runtime into a list, via av_make and sv_setsv the SV_YES is lost and turned into a PVNV of 1
Special case sv_setsv_flags
for the immortals (not possible, rather fix the callers), which also makes it faster for these. They don't need to be copied, they are immortal after all.
This is esp. useful for XS roundtrips, treating booleans as such. Currently one needs to bless them into some magic Boolean package to survive roundtrips.