Thread overview | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
June 09, 2015 [Issue 10488] Reg (2.063): Template this paramter doesn't work properly | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=10488 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|future |D2 -- |
October 25, 2015 [Issue 10488] Reg (2.063): Template this paramter doesn't work properly | ||||
---|---|---|---|---|
| ||||
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 [Issue 10488] Allow template this parameter to work with static functions | ||||
---|---|---|---|---|
| ||||
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 [Issue 10488] Allow template this parameter to work with static functions | ||||
---|---|---|---|---|
| ||||
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 [Issue 10488] Allow template this parameter to work with static functions | ||||
---|---|---|---|---|
| ||||
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 [Issue 10488] Allow template this parameter to work with static functions | ||||
---|---|---|---|---|
| ||||
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 [Issue 10488] Allow template this parameter to work with static functions | ||||
---|---|---|---|---|
| ||||
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 [Issue 10488] Allow template this parameter to work with static functions | ||||
---|---|---|---|---|
| ||||
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 [Issue 10488] Allow template this parameter to work with static functions | ||||
---|---|---|---|---|
| ||||
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 [Issue 10488] Allow template this parameter to work with static functions | ||||
---|---|---|---|---|
| ||||
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 -- |
Copyright © 1999-2021 by the D Language Foundation