Re: [PATCH 6/7] ruby: Use notmuch_database_destroy instead of notmuch_database_close

Subject: Re: [PATCH 6/7] ruby: Use notmuch_database_destroy instead of notmuch_database_close

Date: Mon, 23 Apr 2012 14:49:46 +0200

To: Felipe Contreras

Cc: notmuch@notmuchmail.org

From: Justus Winter


Quoting Felipe Contreras (2012-04-23 14:36:33)
> I don't think this is the right approach. If database_destroy truly
> destroys the object, then we would want to do it only at garbage
> collection, when it's not accessible any more. What if I want to
> re-use the database from the Ruby code?
> 
> This would probably be better:
> 
>[...]

You're probably right, I don't know the ruby bindings at all, I just
wanted to preserve the old behavior. You are welcome to refine the
ruby bindings later (or maintain them, I *believe* they are
unmaintained, the last change was back in october 2011), but let's get
this patch series in first.

Cheers,
Justus

Thread: