• [^] # Re: j'ai pas bien compris comment ca marche

    Posté par . En réponse au journal Gobject Introspection, Parrot, Mono, JVM etc.. Évalué à 9.

    Un exemple de l'utilisation de GI avec Vala pour créer des bindings (bibliothèques de liaison ?).

    http://live.gnome.org/Vala/Bindings

    La partie la plus importante : « The .gi file defines the objects, structures, constants, enumerations and functions in an abstract markup language. Since GLib and GObject follow a well-defined naming convention for object members, functions, etc., it's possible to generate these independent definitions from the source code. The resulting .gi file is then used to generate the .vapi file that defines the vala bindings. ».

    En gros, grâce à GI, on se retrouve avec une définition précise des fonctions de la bibliothèque qu'on veut « binder ». Il suffit alors de la passer dans un outil adapté au langage qu'on utilise pour créer automatiquement le code kivapreskbien(tm).

    The capacity of the human mind for swallowing nonsense and spewing it forth in violent and repressive action has never yet been plumbed. -- Robert A. Heinlein