[Vala] GObjectIntrospection and Generics



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi there.

This question actually is more about than GObjectIntrospection than
about Vala, but maybe someone can help or direct me to a better place
to ask.

I write a library in Vala that i want to expose through GObject
Introspection. No i want to expose a class that uses generics. (For
testing purposes i fiddled around with Gee.ArrayList)

In Vala i would do something like


using Gee;

var list = new Gee.ArrayList<int>();


In Python i tried

from gi.repository import Gee

list = Gee.ArrayList()


but it fails with an error.

How do i use generics from other languages and where could i ask about
that?

Yours, Grindhold.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVP00AAAoJEBuqgJs6izSEA/cQAJhCN3DgBvgH2jM1Q6cQ7/Ha
PDy/CoCKbQjT2DKBkmZNOtFhm8HB4QchLedciwBTxtd+QGtSSrLksQFV94mqOr/G
aJFXPOO/Pk4XL01Pj6AOAYKY8mjF+TBdVTLJeVNNroZZeLiosDFlSm5zokfrCi4+
F6+okJDzAxOqmZqNTjIPqmebcq72nP2W3MIrr8Ia/2XvgfvrwEpDgLaPmE1at/Qo
SExu+yFwbxNo01nzWAQ7uFA7BWdwzXdRSbn1c80NGfNlF5rdD9TWqfD6KVw1iWmN
k+B5bG+c+/11jnBe9deumpE7ZQpvTFDUt4jepOxOk8+fKoF54C/sy8MXAQ+2BaB8
r6Aj2GqIIgM12SOZ631d1eZUXJwt6xRD9xckNfyea7T4uA47XBv7zsKxdrgiE7Du
zFDm+6STeSR7famLDC/iet4tIosdj6m10ZGfut4upomGnUr3Uad3pfn3NJN+IMzs
u+DLez/89/YTgFqaerEc8aLTSGo8OBtY0s7Um2/oqWCWL/SUVkz2gAm7l8LUQn36
pkTHlDJJ+7+cvlQVf3lf0s4DtvSMPcx+KkPHfwVlG+TL0mPRZ6vXmuDIZGJQGhuu
+kA6WOUVy7YrfqxaEZPc2LSV/YsrQMQ7gXHrEFfCe6oYPrg8lk8PNWmVgXMnktL2
I+FPpbE8VD+Ukdq7cHvY
=WBLp
-----END PGP SIGNATURE-----


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