On Mon, 6 Oct 2003, Leopold Toetsch wrote: > The current classes/pmc2c.pl PMC compiler has some drawbacks: > - does multiple scanning of source files > - a lot of code duplication > - no multiple PMC inheritance > - hard to hack and expand > > So I started to reimplement it with a new scheme: > * parse files only once: > A Makefile rule creates classes/foo.dump from classes/foo.pmc > with the help of Data::Dumper[1] > * Generating foo.{c.h} uses these dumps > > Dump of classes and $default (vtable.tbl) is already working.
If it's clearer to read than pmc2c.pl, sure, go for it. That code's been stretched well beyond what it it it was originally intended to do and is getting kind of crufty. Dan