Use of complete GList functionality? Change to GSList?
Derek Atkins
warlord@MIT.EDU
04 Mar 2001 21:11:50 -0500
Dave Peticolas <dave@krondo.com> writes:
> Derek Atkins writes:
> > Is a KVP_TYPE_GLIST guaranteed to always just a list of kvp_values?
> > If so, then I can deal with that :)
>
> Yes, that is a guarantee.
Great. That makes life easy :) Is this documented anywhere?
> > One of my major issues with the GList construct is that there is no
> > way to validate the _type_ of list you've got. In other words, there
> > is no way to be assured that you have list of type foo. I could pass
> > a GList of type foo to a function that is expecting a GList of type
> > bar, and there is no way to detect that. :(
>
> True. Care must be taken :)
Yea, yea. So much for having the compiler help us.. ;)
> dave
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available