[Xapian-discuss] Re: constructors vs factory functions (was Re: TCL
	Binding working, but db_lock doesn't get removed?)
    Olly Betts 
    olly at survex.com
       
    Sat Dec  4 18:52:21 GMT 2004
    
    
  
I wrote:
> So I thought about how we could work around this.  The problem is that
> Tcl8 doesn't cope with a factory function which returns an object.  But
> we could give WritableDatabase a normal constructor instead of using a
> factory function.
>
> And in fact thinking about this, it's probably a more natural design
> for the API user.
OK, I've now made this change - it'll be in 0.8.4 (coming soon).
And it fixes the tcl problem - provided you remember to use "db -delete"
the database is closed.
Cheers,
    Olly
    
    
More information about the Xapian-discuss
mailing list