https://issues.dlang.org/show_bug.cgi?id=20965

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from RazvanN <[email protected]> ---
You are correct, however, the initial idea was to favor the use of postblits
until they are deprecated. If you want to make sure that all copying is
disabled, simply do:

@disable this(this);
@disable this(ref typeof(this));

You don't have to reflect on any code this way.

The rule of thumb is: if you want to make sure that a posblit does not get in
your way you must defensively disable the postblit and then the copy
constructor will have priority.

--

Reply via email to