Submitted by Eric M. Hopper on Mon, 25 Oct 1999
07:55:22 -0500
I have some quick & dirty hacks to Perceps to make
it understand externally defined nested classes.
By this I mean something like:
class A {
class nesteda;
};
class A::nesteda {
};
The distributed version of Perceps currently chokes
rather badly on this. It decides you are declaring
two copies of A.
I don't think my hack properly handles scoping for
the derived class declarations, but I'm not sure.
I'm not sure if Perceps properly handles that
scoping. In other words, I'm not sure if Perceps
properly handles all of the following cases, even
after my hack:
class A {
class nestea;
};
class B {
class nestedba : public nesteda {
};
class nestedbb;
};
class B::nestedbb : public A::nesteda {
};
And, Perceps most definitely does not handle class
names with numbers or underscores. This is very
difficult to fix because of the constant use of \w+
to match class names.
I am enclosing the patch for my hack.
Have fun (if at all possible),
diff -ru perceps-3.5.0/perceps.pl perceps-3.5.0.1/perceps.pl