On Friday, 17 October 2014 at 19:45:43 UTC, ketmar via
Digitalmars-d wrote:
On Fri, 17 Oct 2014 19:39:39 +0000
IgorStepanov via Digitalmars-d <[email protected]>
wrote:
Thus I suggest another solution:
Do not generate helper functions like __fieldPostBlit, if
struct has a @disabled this(this);
Destroy it.
`@disable this (this);` means that struct can't be copied. it's
irrelevant what code compiler generates behind our backs, it
will not
be executed anyway, 'cause compiler will complain: "Error:
struct XXX is
not copyable because it is annotated with @disable".
This error will be raised if I try to copy the my struct. But I
don't want to do it. Now the error raised when I define the
struct.