next up previous contents
Next: C vs C++ interface Up: Design Trade-offs Previous: Embedding buff_size in data   Contents

Moving size_and_flags inside data

Instead of having size_and_flags a part of Str, it could have been embedded in Str::data. This approach has a few advantages:

The advantages or keeping size_and_flags separate are:


next up previous contents
Next: C vs C++ interface Up: Design Trade-offs Previous: Embedding buff_size in data   Contents
2007-05-05