Thread overview
[Issue 18228] this(this a){} doesn't generate postblit ctor; this(this){} does
Jan 12, 2018
ag0aep6g@gmail.com
Jan 12, 2018
Timothee Cour
Apr 05, 2018
RazvanN
May 12, 2018
Nick Treleaven
May 12, 2018
Nick Treleaven
January 12, 2018
https://issues.dlang.org/show_bug.cgi?id=18228

ag0aep6g@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
                 CC|                            |ag0aep6g@gmail.com
           Hardware|x86                         |All
                 OS|Mac OS X                    |All

--- Comment #1 from ag0aep6g@gmail.com ---
`this(this a){}` is not a postblit function. DMD apparently interprets it as a
constructor, same as `this(typeof(this) a) {}`. I don't think that's correct,
though. It should be rejected as invalid code. Tagging accordingly.

--
January 12, 2018
https://issues.dlang.org/show_bug.cgi?id=18228

Timothee Cour <timothee.cour2@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2@gmail.com

--- Comment #2 from Timothee Cour <timothee.cour2@gmail.com> ---
agreed, `this(typeof(this) a) {}` should be the correct syntax

--
April 05, 2018
https://issues.dlang.org/show_bug.cgi?id=18228

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
PR : https://github.com/dlang/dmd/pull/8141

--
April 19, 2018
https://issues.dlang.org/show_bug.cgi?id=18228

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/5cebe70bd69496f129bf2284b02fbe1cbcbd3b82
Fix Issue 18228 - this(this a){} doesn't generate postblit ctor; this(this){}
does

https://github.com/dlang/dmd/commit/bbc087e67ea977de2d5f0410d306b510e4baeb92 Merge pull request #8141 from RazvanN7/Issue_18228

Fix Issue 18228 - this(this a){} doesn't generate postblit ctor; this(this){}
does
merged-on-behalf-of: Jacob Carlborg <jacob-carlborg@users.noreply.github.com>

--
April 19, 2018
https://issues.dlang.org/show_bug.cgi?id=18228

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
May 12, 2018
https://issues.dlang.org/show_bug.cgi?id=18228

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gassa@mail.ru

--- Comment #5 from Nick Treleaven <nick@geany.org> ---
*** Issue 9597 has been marked as a duplicate of this issue. ***

--
May 12, 2018
https://issues.dlang.org/show_bug.cgi?id=18228

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=12228

--