3 ms·
I think I read something like this in a header file for a GNU licensed compiler at some point. The String object was a character array (presumably terminated b
by mjevans 11y ago
I think I read something like this in a header file for a GNU licensed compiler at some point.
The String object was a character array (presumably terminated by a NULL) which was prefixed by a size_t (it may have been assumed that String inherited another precursor class).
Still, I do like the idea of working within a bounded set. This sounds much more like a language feature where you could work within an array of known size. Though most of the time when I care about easy String handling I'm better off writing it in a higher level language.