http://qs321.pair.com?node_id=128780


in reply to Don't have a COW? Get one!

Doesn't current third-party XS code depend on SvPTR() being owned only by the current SV? COW changes that....

    -- Chip Salzenberg, Free-Floating Agent of Chaos

  • Comment on Beware the XS (was Re: Don't have a COW? Get one!)

Replies are listed 'Best First'.
Re: Beware the XS (was Re: Don't have a COW? Get one!)
by japhy (Canon) on Dec 01, 2001 at 05:15 UTC
    I wouldn't be making it third party code -- this would just be another builtin magic.

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

      I got that. My point is that the magic you're describing could easily break compatibility with third-party XS code.

          -- Chip Salzenberg, Free-Floating Agent of Chaos

        Ohhhhh. You meant it the other way. Well, this would be experimental in the 5.9 track, I'd guess, and would be fine-tuned for Perl 6.

        _____________________________________________________
        Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
        s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;