Thread overview
[Issue 18228] this(this a){} doesn't generate postblit ctor; this(this){} does
Apr 05
RazvanN
January 12
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
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
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

--
7 hours ago
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>

--
7 hours ago
https://issues.dlang.org/show_bug.cgi?id=18228

github-bugzilla@puremagic.com changed:

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

--