Jump to page: 1 2
Thread overview
[Issue 10488] Allow template this parameter to work with static functions
[Issue 10488] Reg (2.063): Template this paramter doesn't work properly
Oct 25, 2015
Marc Schütz
Feb 01, 2018
Nick Treleaven
Feb 01, 2018
Nick Treleaven
Mar 09, 2018
Nick Treleaven
Sep 14, 2022
Nick Treleaven
Sep 14, 2022
Adam D. Ruppe
Sep 16, 2022
Dlang Bot
Sep 26, 2022
Dlang Bot
Sep 27, 2022
Dlang Bot
Dec 17, 2022
Iain Buclaw
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=10488

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|future                      |D2

--
October 25, 2015
https://issues.dlang.org/show_bug.cgi?id=10488

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

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

--- Comment #3 from Marc Schütz <schuetzm@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.

--
November 10, 2015
https://issues.dlang.org/show_bug.cgi?id=10488

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Reg (2.063): Template this  |Allow template this
                   |paramter doesn't work       |parameter to work with
                   |properly                    |static functions

--
February 01, 2018
https://issues.dlang.org/show_bug.cgi?id=10488

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.gehr@gmx.ch

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

--
February 01, 2018
https://issues.dlang.org/show_bug.cgi?id=10488

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #5 from Nick Treleaven <nick@geany.org> ---
The above duplicate has a nice test case and also a comment that template this should be allowed anywhere inside a class, not just static function templates.

--
March 09, 2018
https://issues.dlang.org/show_bug.cgi?id=10488

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blah38621@gmail.com

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

--
September 14, 2022
https://issues.dlang.org/show_bug.cgi?id=10488

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxsamukha@gmail.com

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

--
September 14, 2022
https://issues.dlang.org/show_bug.cgi?id=10488

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--
September 16, 2022
https://issues.dlang.org/show_bug.cgi?id=10488

--- Comment #8 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dmd pull request #14446 "Infer template this parameter when calling static method on instance" mentioning this issue:

- Infer template this parameter when calling static method on instance

  Part of Issue 10488 - Allow template this parameter with static functions.

  Note: `tthis` is only used in `doHeaderInstantiation` for template this
  so assigning null when there's a static storage class is not needed for
  anything else.

https://github.com/dlang/dmd/pull/14446

--
September 26, 2022
https://issues.dlang.org/show_bug.cgi?id=10488

--- Comment #9 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14446 "Infer template this parameter when calling static method on instance" was merged into master:

- 0121a59283ab9eb20b8fff646f90df7bd3fbfe13 by Nick Treleaven:
  Infer template this parameter when calling static method on instance

  Part of Issue 10488 - Allow template this parameter with static functions.

https://github.com/dlang/dmd/pull/14446

--
« First   ‹ Prev
1 2