Ticket #173 (reopened enhancement)
Bindings should have an explicit WritableDatabase::close() method
| Reported by: | richard | Owned by: | richard |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1.0 |
| Component: | Xapian-bindings | Version: | SVN trunk |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Operating System: | All | Blocking: |
Description (last modified by richard) (diff)
In garbage collected languages, it is hard to ensure that a WritableDatabase? object has been closed, because this requires ensuring that no objects still hold a reference to it. To make this easier, WritableDatabases? should have an explicit close() method, which would delete the underlying C++ object. After this method has been called, all other methods on the WritableDatabase? object in the bindings would be invalid.
Change History
Note: See
TracTickets for help on using
tickets.
