On Jul 24, 2013, at 01:09 , Marvin Humphrey <[email protected]> wrote:
> The difference in the generated code for Lucy.xs is somewhat surprising. > Without the binding spec for PolyMatcher, we don't generate Perl bindings for > the destructors of any of its descendants -- see below my sig for the diff. This is because of my changes to CFCPerlClass_method_bindings trying to make XSub creation for methods from another parcel work. Turns out that there are still some holes. > A more robust approach might be to default to generating bindings whenever > possible for every class and every method in a parcel. (C types which cannot > be mapped automatically, such as `int*`, prevent some methods from being bound > automatically.) This will cost us in terms of compiled object size and build > time, but it's conceptually simpler and will cut down on weird edge cases like > the one we have to disentangle now. I think that's the best solution. We've been generating bindings for most methods anyway. Nick
