[Issue 10488] Reg (2.063): Template this paramter doesn't work properly

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Oct 25 05:02:53 PDT 2015


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

Marc Schütz <schuetzm at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |schuetzm at gmx.net
         Resolution|INVALID                     |---
           Severity|regression                  |enhancement

--- Comment #3 from Marc Schütz <schuetzm at gmx.net> ---
IMO the fact that `typeof(this)` is allowed in static methods is a compelling
argument to allow this. It has interesting applications when combined with
inheritance, see this forum post:

http://forum.dlang.org/post/n0gl6m$1oms$1@digitalmars.com

Therefore I'm reopening this issue as an enhancement request.

--


More information about the Digitalmars-d-bugs mailing list