Re: GHashTable and const
- From: "Havoc Pennington" <hp pobox com>
- To: "Andrew W. Nosenko" <andrew w nosenko gmail com>
- Cc: gtk-devel-list gnome org
- Subject: Re: GHashTable and const
- Date: Thu, 3 Jul 2008 09:25:19 -0400
Hi,
This is in the archives a bunch of times, for example the first google
hit I got was
http://mail.gnome.org/archives/gtk-devel-list/2001-May/msg00485.html
Whether you agree or not, the GLib types don't use const in their API,
so if you try to use const yourself on these types you're just signing
up for pain. It won't work well or do anything useful. (If _all_ the
methods on an object are non-const, all the const keyword does is make
you do a bunch of casts.)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]