[Issue 3546] Aliasing an element of a static array should be legal if the index is a compile time constant

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 16 12:11:53 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=3546

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #6 from Dlang Bot <dlang-bot at dlang.rocks> ---
@NilsLankila updated dlang/dmd pull request #11273 "fix issue 3546 - experiment
aliasing a symbol with a constant indexer" fixing this issue:

- fix issue 3546 - experiment aliasing a symbol with a constant indexer

  An alias allows to reference a variable. When used this variable is then
turned into a `VarExp`.
  The idea is why not allowing an extra index, as long as the index is for a
variable and that it is a compile-time constant ?

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

--


More information about the Digitalmars-d-bugs mailing list