Re: [PATCH v2 08/10] ruby: move towards more modern RTypedData

Subject: Re: [PATCH v2 08/10] ruby: move towards more modern RTypedData

Date: Wed, 12 May 2021 21:23:21 -0500

To: David Bremner

Cc: notmuch@notmuchmail.org

From: Felipe Contreras


On Wed, May 12, 2021 at 5:02 PM David Bremner <david@tethera.net> wrote:
>
> Here I would also like a bit more back story in the commit message

I'm not exactly sure what I need to explain here. RTypedData is the
modern way objects are created.

Data_Wrap_Struct is replaced with TypedData_Wrap_Struct, and the
information is stored in a struct rb_data_type_t, rather than passed
as arguments.

Check_Type is replaced with Check_TypedStruct, which is a wrapper for
rb_check_typeddata (with casts).

-- 
Felipe Contreras
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: