Re: g_slist_foreach and g_list_foreach functions



on 9/24/00 8:43 AM, Owen Taylor at otaylor redhat com wrote:

> (I would say that if you are planning to remove elements, then doing
> g_list_foreach() and g_list_remove() is a poor way to do it. If you
> don't simply write it as a loop, which I would tend to do, you really
> want a g_list_remove_all_custom() which takes a predicate. I forget if
> Maciej's suggested additions have anything like that.)

The issue comes up when you do g_list_foreach and call other code, which
sometimes does a g_list_remove.

    -- Darin





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