Re: GHashTable suggestions



Sven Neumann <sven gimp org> writes:  
>   The only problem I see is that inserting a new item into a GHashTable
>   does replace the value (and destroys it if a destroy_func was given),
>   but keeps the old key in place. This problem is longstanding, but 
>   should probably be handled differently when a key_destroy_func is 
>   specified ?!

Maybe we could add g_hash_table_replace() which is like _insert() but
replaces the key? Kinda lame, but also kinda needed... dunno.

Havoc




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