in reply to Re: RFC Magic::Attach
in thread RFC Magic::Attach

Yes it worries me too. sv_unmagic() on '~' removes all '~' magic entries currently (Which is why the current implemenation does not call it). I wonder if there would be any way or (where) to determine what modules exist that use internal magic. I would think there are not too many. The only one I know of is Devel::WeakRef and Pixie.

I don't mind taking my own magic entry but worry about clashes with future versions of Perl 5.* and of course other modules developers.

-Lee

"To be civilized is to deny one's nature."

Replies are listed 'Best First'.
Re: Re: Re: RFC Magic::Attach
by pdcawley (Hermit) on Jan 21, 2003 at 09:11 UTC
    Just announce that you're grabbing a magic sigil on p5p, explaining why (that's what I did). Who knows, make it general enough and it might end up in the core.
      Thanks. I actually saw your post to perl5-porters which clued me in on the sv_unmagic issue.

      -Lee

      "To be civilized is to deny one's nature."
        I must take a close look at your actual code. If it's sufficiently general I'll probably change Pixie to make use of it rather than having its own specific implementation.