https://issues.dlang.org/show_bug.cgi?id=12420
Iain Buclaw changed:
What|Removed |Added
Priority|P2 |P1
--
https://issues.dlang.org/show_bug.cgi?id=12420
--- Comment #16 from Dlang Bot ---
@WalterBright updated dlang/dmd pull request #4835 "[REG] fix Issue 12420 -
[AA] Can't set associative array with array as key …" fixing this issue:
- fix Issue 12420 - [AA] Can't set associative array
https://issues.dlang.org/show_bug.cgi?id=12420
--- Comment #14 from Walter Bright bugzi...@digitalmars.com ---
https://github.com/D-Programming-Language/dmd/pull/4835
--
https://issues.dlang.org/show_bug.cgi?id=12420
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=12420
--- Comment #15 from Denis Shelomovskij verylonglogin@gmail.com ---
(In reply to Walter Bright from comment #13)
...
Yes, the compiler currently accepts const keys, and const keys are mutable
by other references. But that is the bug, not the
https://issues.dlang.org/show_bug.cgi?id=12420
--- Comment #9 from Denis Shelomovskij verylonglogin@gmail.com ---
(In reply to Kenji Hara from comment #8)
(In reply to Martin Nowak from comment #7)
So what's the conclusion here?
Denis argues that mutable key char[] should be allowed for
https://issues.dlang.org/show_bug.cgi?id=12420
Martin Nowak c...@dawg.eu changed:
What|Removed |Added
CC||c...@dawg.eu
--- Comment #7 from
https://issues.dlang.org/show_bug.cgi?id=12420
--- Comment #8 from Kenji Hara k.hara...@gmail.com ---
(In reply to Martin Nowak from comment #7)
So what's the conclusion here?
Denis argues that mutable key char[] should be allowed for the AA indexing.
But AA key should be const on indexing, and
https://issues.dlang.org/show_bug.cgi?id=12420
Steven Schveighoffer schvei...@yahoo.com changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=12420
--- Comment #11 from Denis Shelomovskij verylonglogin@gmail.com ---
(In reply to Steven Schveighoffer from comment #10)
(In reply to Denis Shelomovskij from comment #9)
I can't believe anyone can accept bahaviour shown in Comment 6.
I
https://issues.dlang.org/show_bug.cgi?id=12420
--- Comment #12 from Steven Schveighoffer schvei...@yahoo.com ---
(In reply to Denis Shelomovskij from comment #11)
But htis issue even not about this. AA's key type is `const char[]` and
`char[]` is implicitly convertible to `const char[]`
https://issues.dlang.org/show_bug.cgi?id=12420
Denis Shelomovskij verylonglogin@gmail.com changed:
What|Removed |Added
Status|RESOLVED|REOPENED
https://issues.dlang.org/show_bug.cgi?id=12420
--- Comment #5 from Kenji Hara k.hara...@gmail.com ---
(Sorry, ignore my comment #4.)
(In reply to Denis Shelomovskij from comment #3)
Looks like you misunderstood me. The word `immutable` shouldn't be here,
it's just an incorrect error message.
https://issues.dlang.org/show_bug.cgi?id=12420
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://d.puremagic.com/issues/show_bug.cgi?id=12420
--- Comment #3 from Denis Shelomovskij verylonglogin@gmail.com 2014-03-30
12:27:43 MSK ---
(In reply to comment #1)
I agree with the conclusion, the reason in my thought is:
`new char[1]` makes unique data and have no foreign
https://d.puremagic.com/issues/show_bug.cgi?id=12420
--- Comment #1 from Kenji Hara k.hara...@gmail.com 2014-03-29 20:21:09 PDT ---
(In reply to comment #0)
This code should compile:
---
void main()
{
int[char[]] aa;
aa[new char[1]] = 5; // line 4
}
---
main.d(4): Error:
https://d.puremagic.com/issues/show_bug.cgi?id=12420
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull
--- Comment #2
17 matches
Mail list logo