chromatic wrote:
I wonder if changing the Namespace PMC to store all vtable methods in such a
way that an indexed lookup will work is a benefit. It might simplify the code
even further.
Yes, I'd like to see this. I did the groundwork for it already, by
refactoring the NameSpace PMC so that there is a place to hang such a
thing off now (just add it to the underlying struct), though I was doing
it so there was a slot to hang the class that the namespace maps to
from. So it shouldn't be too much work to do this.
Note that PDD15 classes don't lookup non-vtable methods in namespaces
anymore, and I think the same will go for vtable methods. With PMCProxy
now existing, I suspect we can do the same for non-vtable methods of
PMCs too...
Jonathan