lists.zerezo.com



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

***BOGO*** Re: GHashTable and const



On Thu, Jul 3, 2008 at 2:11 PM, Rui Tiago Cação Matos
<tiagomatos@xxxxxxxxx> wrote:
> On 03/07/2008, Alberto Mardegan <mardy@xxxxxxxxxxxxxxxxxxxxx> wrote:
>> Hi, quick question: why do methods like
>>
>>  g_hash_table_size()
>>  g_hash_table_lookup()
>>
>>  don't accept a "_const_ GHashTable *" as first parameter?
>
> Since GHashTable is an opaque data type you don't have to worry about it.

Excuse me, but whether some type/structure is opaque or not have
nothing with constness.  It just irrelewant.  And yes, I'm also very
tired by hevy constless of Glib's API :-(

-- 
Andrew W. Nosenko <andrew.w.nosenko@xxxxxxxxx>
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-devel-list