in reply to Re: XS and preserving magic
in thread XS and preserving magic

Thanks for the suggestion. I'll check it out. I ended up using '~' because in 5.8 it doesn't trample it so stole the sv_magicext() function and put it into the xs file and so far seems to work fine with 5.6.1

-Lee

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

Replies are listed 'Best First'.
Re: Re: Re: XS and preserving magic
by pdcawley (Hermit) on Jan 19, 2003 at 18:47 UTC
    We tried to use '~' within Pixie, but for a very good reason that I now can't remember, we ended up having to introduce our own magic type.
      The thing that would concern me is that if the module is generally useful, that an implementation "collision" would occur. I can't imagine how hard it would be to track that bug down. Before this little project I would never ever consider that possibility. If you remember the reason, please do tell. Hopefully I can avoid it though.

      -Lee

      "To be civilized is to deny one's nature."
        One of these days I'm going to use the Pixie::Info technique to implement Data::OutOfBand (or some such name) which would hang a hash off something by magic and allow different classes to hang arbitrary info off an object (key the hash on the *storing* class). However, it's waiting on getting a few appropriately shaped tuits...