Re:GapList – A Lightning-Fast List Implementation
by haberman on Wednesday May 09, 2012 @12:37AM
(#3947124)
Structures that are kept opaque both enforce encapsulation and give binary/ABI compatibility for free. These are two very large advantages. The documentation of a type should come from the supported operations you can perform on it, not the way it represents its data internally.
Re:GapList – A Lightning-Fast List Implementation
by ExpiredLink on Tuesday May 08, 2012 @12:32PM
(#3944451)
When you put the definition of _MxStringBuffer into the *.c file you can "access the internals". The advantage of forward declaration is encapsulation.
Edit: In fact, you must need the declaration to access the internals.