chromatic wrote:
On Tuesday 21 November 2006 18:36, James E Keenan wrote:
3 identically named subroutines: 2 in modules and 1 in a script. And
all 3 will be in modules as I'm planning to refactor much of pmc2c.pl
into a module called Parrot::Pmc2c::Utils. (For drafts of these
revisions, see http://thenceforward.net/parrot/.)
This is not good, right? Suggestions as to how to proceed?
Which one do we actually use now? Let's consider that the canonical one. If
there is one, it'll be nice to see if there are any appreciable differences
in output between the three. That'll let those of us who've written PMCs
before have a chance to see if there are significant features of one over the
others.
The coverage analysis I'm running on my tests indicates that
Parrot::Pmc2c::gen_c() is definitely used, as is (the future)
Parrot::Pmc2c::Utils::gen_c() (what is currently found in
tools/build/pmc2c.pl).
I suspect Parrot::Pmc2c::Library::gen_c() is not currently used, but I
can't definitely rule the contrary possibility out. All I can say is
that my test suite doesn't touch it. Nor does my test suite touch the
same package's gen_h() module either.
jimk