Re: GHashTable and const



On Thu, Jul 3, 2008 at 2:11 PM, Rui Tiago Cação Matos
<tiagomatos gmail com> wrote:
> On 03/07/2008, Alberto Mardegan <mardy users sourceforge net> 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 gmail com>


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