Re: batching gets and searching



You could document a parameter using comments like:

void my_func( int /* MyFlagsEnumType */ flags )

which at least makes a correct use of the language type mechanism.

By the way, it's a bad idea to export interfaces using C++ because
name-mangling tends to change between compiler versions and
is never consistent between different compilers. If the wrapper
is small enough, it could be provided as source to be compiled
into each client application.

Colm.

>Delivered-To: gconf-list gnome org
>X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp redhat com 
using -f
>To: Colm Smyth <Colm Smyth ireland sun com>
>Cc: gconf-list gnome org
>Subject: Re: batching gets and searching
>From: Havoc Pennington <hp redhat com>

>FWIW the argument for using the enum type instead of int is mostly
>documentation of which flags are expected, I believe.
>
>Havoc
>
>_______________________________________________
>Gconf-list mailing list
>Gconf-list gnome org
>http://mail.gnome.org/mailman/listinfo/gconf-list

--
Colm Smyth - Sun Microsystems, Ireland - Desktop S/W Engineering
Sun Xtn: 19166    Phone: 353-1-819-9166   Fax: 353-1-819-9200





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