3 ms·
> how else could you implement a string class I'm not claiming that it's good C++ code (or good code by any measure) but I imagine those "C with classes" devs
by Merad 3y ago
> how else could you implement a string class
I'm not claiming that it's good C++ code (or good code by any measure) but I imagine those "C with classes" devs would do something like:
my_string* s = new my_string();
s->initialize("hello world");
// ...
s->destroy();
delete s;
- zabzonk 3y agowell, i have seen a lot of very bad c++ code in my time, but nothing like this.