Re: [introspection] GArrays, GPtrArrays, etc

On Fri, Dec 4, 2009 at 01:59, Iain Nicol <iain thenicols net> wrote:
> Hi,
> It seems there is no GI_TYPE_TAG_ for GArrays, GPtrArrays or GByteArrays.
> Well, there is GI_TYPE_TAG_ARRAY and associated annotation "(array)", but
> this is for plain C arrays.  I presume it doesn't e.g. make sense to
> overload GI_TYPE_TAG_ARRAY for GArrays too, because GArrays behave
> differently than plain C arrays.

I think GArrays are less different than what you say, from the
bindings POV. Here is how PyGI wraps a C array inside a GArray, helped
by the introspection data in order to get its length and its elements



> I would have thought that these containers should be given their own tag
> type so they can be properly handled by language bindings like Seed.  G(S)
> Lists and GHashTables all have their own tag types.
> So, is this a missing feature?  Or do I misunderstand the situation?
> Regards,
> --
> Iain Nicol
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org

«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]