[Fwd: Data in linked lists]



--- Begin Message ---
Gentlemen,

I was just thinking about how the data in linked lists structures are
handled by the GList and GSList implementations.  These implementations
never directly alter the data themselves nor do they change the value of
the data pointers, do they?  That job is the responsibility of user
functions.  Therefore, the list implementations have no idea whether the
data in the list is actually constant or mutable.  Only the user/client
functions know that.  So why don't the list implementations treat the
data as constant pointers throughout?  It should be up to the user
functions to know whether the data is constant or mutable and thus
whether the const should be casted away or not.

Thoughts?

Eric.


--- End Message ---


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