Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
May 14, 2018 [Issue 14170] `this` compiles in a static context | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14170 Nick Treleaven <nick@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@geany.org See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=12228 -- |
May 14, 2018 [Issue 14170] `this` compiles in a static context | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14170 Simen Kjaeraas <simen.kjaras@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simen.kjaras@gmail.com --- Comment #1 from Simen Kjaeraas <simen.kjaras@gmail.com> --- (1) is a case of DMD ignoring a redundant keyword - 'static' has no effect there, so it's just ignored. It's been mentioned that this is due to static blocks in aggregates, but I'm unsure of the exact details: struct S { static { // or just static: // lots of declarations alias value this; } } (3) is explicitly mentioned in https://dlang.org/spec/declaration.html#typeof: Special cases: typeof(this) will generate the type of what this would be in a non-static member function, even if not in a member function. (2) and (4) are bug 6579. Possibly a bit more than that, since they don't have an actual instance to work with, but that's the root. -- |
May 14, 2018 [Issue 14170] `this` compiles in a static context | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14170 Mike Franklin <slavo5150@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=6579 -- |
December 17, 2022 [Issue 14170] `this` compiles in a static context | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14170 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P3 -- |
December 13 [Issue 14170] `this` compiles in a static context | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14170 --- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18946 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation