Re: g_list_next (list->next considered harmful?)
- From: degger fhm edu
- To: darin bentspoon com
- Cc: gtk-devel-list gnome org
- Subject: Re: g_list_next (list->next considered harmful?)
- Date: Tue, 18 Dec 2001 13:17:26 +0100 (CET)
On 17 Dec, Darin Adler wrote:
> The extra code generated by the macro to check for NULL?
A good compiler will notice that the loop itself checks for NULL and
kill the additional instruction(s).
> The loss of type checking on the list parameter to the macro, making
> errors like list = g_list_next (widget) possible?
That's indeed severe but why is the cast in place anyway?
--
Servus,
Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]