[Xapian-discuss] TCL Bindings
Michael Schlenker
schlenk at uni-oldenburg.de
Wed Oct 20 12:13:13 BST 2004
Olly Betts schrieb:
> On Tue, Oct 19, 2004 at 09:29:31PM +0100, Olly Betts wrote:
>
>>By trial and (a lot of) error, I've managed to translate the "smoketest"
>>into TCL. I think simplesearch might be more of a challenge - I'll have
>>a quick go, but otherwise I'll just stick your example in.
>
>
> OK, I now have simplesearch in Tcl. Oddly, Xapian::Query::OP_OR is
> wrapped as the Tcl constant Query_OP_OR (no prefix). Otherwise it
> seems to work well, though Tcl seems a very odd language.
>
Its odd if you come from a language like C,C++ or Pascal, Java, it gets
more natural and easy if you come from the LISP side. Its lack of syntax
makes it hard to learn for folks coming from C,C++ or Java, but it has
very clear and abstract rules...
Is your tcl simplesearch in CVS? I could take a look at it and try to
smooth the Tcl usage, if you want.
Michael
More information about the Xapian-discuss
mailing list