On Monday, 15 December 2014 at 14:33:51 UTC, ketmar via
Digitalmars-d wrote:
On Mon, 15 Dec 2014 16:01:35 +0200
Shachar Shemesh via Digitalmars-d
wrote:
Please consider the following program:
import std.exception;
void main()
{
struct A {
int a;
@disable this(this);
On Monday, 15 December 2014 at 15:00:56 UTC, Marc Schütz wrote:
On Monday, 15 December 2014 at 14:33:51 UTC, ketmar via
Digitalmars-d wrote:
On Mon, 15 Dec 2014 16:01:35 +0200
Shachar Shemesh via Digitalmars-d
wrote:
Please consider the following program:
import std.exception;
void main()
On Mon, 15 Dec 2014 16:01:35 +0200
Shachar Shemesh via Digitalmars-d wrote:
> Please consider the following program:
> import std.exception;
>
> void main()
> {
> struct A {
> int a;
>
> @disable this(this);
> @disable ref A opAssign(const ref A);
>
> r
Please consider the following program:
import std.exception;
void main()
{
struct A {
int a;
@disable this(this);
@disable ref A opAssign(const ref A);
ref A opOpAssign(string op: "~")(int data) {
a += data;
return this;
}