3 ms·
That assumes that all strings are C strings which isn't true. For example, Pascal-style strings have a size before the string data, and Rust and C++ strings hav
by GolDDranks 8y ago
That assumes that all strings are C strings which isn't true. For example, Pascal-style strings have a size before the string data, and Rust and C++ strings have the size as metadata on stack and the string data in heap.
- steveklabnik 8y agoThis thread apparently started out as a misunderstanding, but just to show how free this can be: https://godbolt.org/z/7ehDPx https://godbolt.org/z/7ehDPx
- GolDDranks 8y agoI think you replied to the wrong post! (Thanks for the nice article btw.)
- steveklabnik 8y agoGah, you're right. Too many tabs. Thanks and you're welcome :)