threads branch: What is purpose of lib/Parrot/Pmc2c/PMC/Proxy.pm?
James E Keenan
jkeen at verizon.net
Sun Aug 12 00:48:16 UTC 2012
In the threads branch, I see that there exists a file which does not
(or, perhaps, no longer) exist in master:
lib/Parrot/Pmc2c/PMC/Proxy.pm. Parrot::Pmc2c::PMC::Proxy inherits from
Parrot::Pmc2c::PMC. It provides only one public method,
pre_method_gen(), which presumably overrides
Parrot::Pmc2c::PMC::pre_method_gen() whenever Parrot::Pmc2c::PMC::Proxy
is 'use'd.
However, AFAICT, Parrot::Pmc2c::PMC::Proxy is only imported into one
other package:
$ ack 'use Parrot::Pmc2c::PMC::Proxy' lib/
lib/Parrot/Pmc2c/Pmc2cMain.pm
20:use Parrot::Pmc2c::PMC::Proxy ();
But Pmc2cMain never invokes pre_method_gen(). Hence, nothing from
lib/Parrot/Pmc2c/PMC/Proxy.pm appears to be used anywhere -- implying
that it can and should be deleted.
Can anyone explain what lib/Parrot/Pmc2c/PMC/Proxy.pm does?
Thank you very much.
Jim Keenan
More information about the parrot-dev
mailing list