Postblit bug

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 17 12:45:33 PDT 2014


On Fri, 17 Oct 2014 19:39:39 +0000
IgorStepanov via Digitalmars-d <digitalmars-d at puremagic.com> 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".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141017/d8103e57/attachment.sig>


More information about the Digitalmars-d mailing list