Re: GtkAllocation accessor
- From: Patrick Welche <prlw1 cam ac uk>
- To: Emmanuele Bassi <ebassi gmail com>
- Cc: gtk-list gnome org
- Subject: Re: GtkAllocation accessor
- Date: Wed, 2 Jun 2010 15:05:40 +0100
On Wed, Jun 02, 2010 at 02:45:56PM +0100, Emmanuele Bassi wrote:
> because if you get a pointer to an internal data structure you're
> allowing people to use it. using const would also not work because of
> the (lax) semantics of const in C. it would, in essence, allow you to
> poke around with internals that are none of your concern. future
> releases of gtk+ might even result in a computed Allocation which is not
> stored by the widget itself - so using an out parameter is the only
> safe, consistent and future-proof way of returning structures in C.
OK - thank you for the explanation!
Patrick
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]