On Thu, 01 Dec 2005 09:11:30 -0800 "Alan M. Evans" <ame1 extratech com> wrote: > I believe that this is a reasonable behavior. But it should be > documented. I am inclined to agree. Anyone with any sense, as you point out, would keep a pointer to the head of the list; thus making g_list_prepend() equivalent to e.g. perl's "unshift" operator on lists. Though documenting its behaviour would be wise; if only in case anyone relies on this in code, and a reader stumbles upon it not realising... That said, by specifically not moving to the head of the list, this makes it into an equivalent of g_list_insert_before(), when passed the same GList* as both arguments. Is this intended / desirable / noticed? -- Paul "LeoNerd" Evans leonerd leonerd org uk ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/
Attachment:
signature.asc
Description: PGP signature