[Xapian-tickets] [Xapian] #714: Use C++ API optional reference counting in bindings

Xapian nobody at xapian.org
Mon Oct 10 00:06:43 BST 2022


#714: Use C++ API optional reference counting in bindings
-----------------------------+-------------------------------
 Reporter:  Olly Betts       |             Owner:  Olly Betts
     Type:  defect           |            Status:  new
 Priority:  normal           |         Milestone:  1.4.x
Component:  Xapian-bindings  |           Version:  git master
 Severity:  normal           |        Resolution:
 Keywords:                   |        Blocked By:
 Blocking:                   |  Operating System:  All
-----------------------------+-------------------------------
Comment (by Olly Betts):

 In languages where we don't use directors (usually, perhaps always,
 because SWIG doesn't support them yet) I think we can just use `ref` and
 `unref`.  In this case the C++ object can live on beyond the target
 language proxy object because it doesn't need to be able to call back to
 it, so if the proxy object increments and decrements the C++ reference
 types it seems everything should work.  I haven't tested this yet though.
-- 
Ticket URL: <https://trac.xapian.org/ticket/714#comment:6>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list