| Thread overview | |||||
|---|---|---|---|---|---|
|
May 10, 2020 [Issue 20816] this template parameter does not work on static method | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20816 Ketmar Dark <ketmar@ketmar.no-ip.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ketmar@ketmar.no-ip.org -- | ||||
May 10, 2020 [Issue 20816] this template parameter does not work on static method | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20816 Mathias LANG <pro.mathias.lang@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pro.mathias.lang@gmail.com --- Comment #1 from Mathias LANG <pro.mathias.lang@gmail.com> --- I had a similar problem recently. Wanted to use `typeof(this)` in a factory method, to return either a `T`, `const(T)`, or `immutable(T)`, but that didn't work out because you're not supposed to use `this` in a static method. But I think it would be a welcome enhancement. -- | ||||
May 10, 2020 [Issue 20816] this template parameter does not work on static method | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20816 Max Samukha <maxsamukha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |maxsamukha@gmail.com Resolution|--- |DUPLICATE --- Comment #2 from Max Samukha <maxsamukha@gmail.com> --- *** This issue has been marked as a duplicate of issue 20277 *** -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply