Re: [GObjectIntrospection] Cleaning up GIRepository



Hi,

On Thu, Aug 26, 2010 at 2:51 PM, Johan Dahlin <johan gnome org> wrote:
> I using a interface description language such as IDL is the right solution
> for solving this within gtk+ etc.

There's also the "Qt way" (essentially, embed the IDL in the C/C++
file). It has a similar advantage to inline doc comments. The IDL
could actually be in one big comment at the top of the .c file, which
would keep it as kind of a discrete parseable thing, but also avoid
extra files in your text editor.

  /**IDL
   * blah blah
   */

  G_MAGIC_MACRO_THAT_EXPANDS_TO_TYPELIB_FROM_ABOVE_IDL

Has downsides also, I suppose.

Havoc


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