Re:C Strings and my slow descent to madness
by saagarjha on Thursday April 20, 2023 @05:07AM
(#35637794)
Walter is talking about D, and he said this:
> D doesn't distinguish between a string and a string view.
In C++ std::string owns the buffer and std::string_view borrows it. If there is no difference between the two in D, then how is this difference bridged?
> D doesn't distinguish between a string and a string view.
In C++ std::string owns the buffer and std::string_view borrows it. If there is no difference between the two in D, then how is this difference bridged?