04.07.2017 15:06, Basile B. пишет:
On Tuesday, 4 July 2017 at 10:40:42 UTC, drug wrote:
```
struct Foo
{
ubyte width, length;
// by reference
bool opEquals(ref const(Foo) other) const pure @safe
{
if (width != other.width)
return false;
if (length !=
On Tuesday, 4 July 2017 at 10:40:42 UTC, drug wrote:
```
struct Foo
{
ubyte width, length;
// by reference
bool opEquals(ref const(Foo) other) const pure @safe
{
if (width != other.width)
return false;
if (length != other.length)
return fal
```
struct Foo
{
ubyte width, length;
// by reference
bool opEquals(ref const(Foo) other) const pure @safe
{
if (width != other.width)
return false;
if (length != other.length)
return false;
return true;
}
// by value
bo