Re: Magic-v2, Clone, and a possible `sv_clone` API function
[email protected] ("Paul \"LeoNerd\" Evans") Fri, 5 Jun 2026 17:25:05 +0100
| Newsgroups | perl.perl5.porters |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 5 Jun 2026 18:17:55 +0200 Leon Timmermans <[email protected]> wrote: > I can't help noticing that this sv_clone is almost the same thing as > sv_dup (or probably sv_dup_inc), except that the new value doesn't > live in a different interpreter. Yes indeed - I was thinking that a suitable implementation would probably adjust the way that sv_dup works so that the same internals could handle both cases, and then be exposed as `sv_clone` as an API function, and also used internally by the thread cloning behaviour. -- Paul "LeoNerd" Evans [email protected] http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS