Re: Stop stepping on other perl extension's toes

Kevin Ryde <user42 zip com au> writes:

Florian Ragwitz <rafl debian org> writes:

extensions also using the PERL_MAGIC_ext mechanism.

The magic is only the underlying hash is it, what sort of things might
add further magic to that?  Something fiddling around with what hash
keys are visible etc?  If a popular package starts working because of
this then the good inter-operation might be advertised somewhere in
the pod.

There's all sorts of interesting things you can do with various kinds of
magic. From "do something special when $this gets freed" to "when
cloning threads, make sure that $this happens to $that object", and
everything inbetween. Variable::Magic is an excellent way to do that
From perl space, and it's not all that hard in C either. There's many
lowlevel-hackery modules making use of that.

Attachment: pgpVKexV00ER8.pgp
Description: PGP signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]