November 21, 2023
https://issues.dlang.org/show_bug.cgi?id=14128

Nick Treleaven <nick@geany.org> changed:

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

--- Comment #4 from Nick Treleaven <nick@geany.org> ---
These declarations all alias the same symbol:

        alias a = this.v;
        alias b = that.v;
        alias c = Foo.v;
        alias d = v;

`a` and `b` resolve at compile-time to `v` based on the *type* of `this` (or `that`). The use of an alias of `v` then resolves at runtime to `this.v`.

I agree that `a` and `b` look like they are binding to runtime fields.

--
November 25, 2023
https://issues.dlang.org/show_bug.cgi?id=14128

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dmd pull request #15863 "Fix Issue 14128 - AliasDeclaration allows expressions, causing false …" fixing this issue:

- Fix Issue 14128 - AliasDeclaration allows expressions, causing false code for ThisExp

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

--
January 20, 2024
https://issues.dlang.org/show_bug.cgi?id=14128

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=16123

--
December 13
https://issues.dlang.org/show_bug.cgi?id=14128

--- Comment #6 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18942

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--
1 2
Next ›   Last »