A string in D, and all arrays, is a struct looking like this:struct Array (T) { T* ptr; size_t length; }
I always thought it looks like this: struct Array(T) { T* ptr; size_t length, capacity; }
A string in D, and all arrays, is a struct looking like this:struct Array (T) { T* ptr; size_t length; }
I always thought it looks like this: struct Array(T) { T* ptr; size_t length, capacity; }