[Xapian-discuss] Filter or MatchDecider or Other?
Olly Betts
olly at survex.com
Fri Aug 20 14:03:56 BST 2004
On Fri, Aug 20, 2004 at 09:08:10AM +0100, Sam Liddicott wrote:
> This feature (subclassing C++ classes in PHP) depends on automatic
> callback support (with cookie values) in swig.
> We spend a long time discussing this; the best solution depended on
> libffi which was supposed to become part of gcc, but did not seem
> consistently available at the time.
The use of subclassing here isn't vital - it's just the most natural
way to do it in C++. Another approach (perhaps more natural in other
languages) is to supply a call-back function. Is that easier to do
with SWIG + PHP? The SWIG docs referred me to the typemap section
which didn't seem to say...
Subclassing would really be needed for writing your own weighting
scheme, but I suspect that's a lot less common than wanting to use
a MatchDecider.
Cheers,
Olly
More information about the Xapian-discuss
mailing list