[Xapian-discuss] Search::Xapian::BoolWeight constructor problem

Markus Wörle mrks at mrks.de
Sun Nov 19 19:01:21 GMT 2006


Hi!

After upgrading from xapian 0.9.6 to xapian 0.9.9 (including perl 
bindings) I get this error when I'm trying to create an instance of 
BoolWeight:

my $bool = Search::Xapian::BoolWeight->new();

throws: Usage: Search::Xapian::BoolWeight::new() at ...

Using Search::Xapian::BoolWeight::new() instead of 
"Search::Xapian::BoolWeight->new()" works, but it feels quite 
unfamiliar to me.

I neighter know C++ nor XS very well, but it seems that there is either 
a wrapper missing, from perl new() to XS new1() (in which case the XS 
new() would have to be renamed to new1()), or there is a class-method 
(new())  instead of an object-method (BoolWeight::new()) in 
XS/BoolWeight.xs.

Regards,
mrks




More information about the Xapian-discuss mailing list