On Sunday, 30 July 2017 at 16:12:41 UTC, piotrekg2 wrote:
What is the idiomatic D code equivalent to this c++ code?
There's no direct equivalent of all your code to D using only
druntime+phobos AFAIK.
class Block
{
[...]
};
Since you don't seem to be using reference type semantics or
po
What is the idiomatic D code equivalent to this c++ code?
class Block
{
public:
Block()
: data_(new char[4096])
{}
...
// NOTE: both members marked noexcept
Block(Block &&rhs) noexcept = default;
Block& operator=(Block &&rhs) noexcept = default;
...
private:
std::unique_pt