[Issue 12420] [AA] Can't set associative array with array as key value using key type

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12420 Iain Buclaw changed: What|Removed |Added Priority|P2 |P1 --

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2020-02-11 Thread d-bugmail--- via Digitalmars-d-bugs
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

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-07-26 Thread via Digitalmars-d-bugs
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 --

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-07-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12420 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-07-26 Thread via Digitalmars-d-bugs
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

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-03-12 Thread via Digitalmars-d-bugs
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

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-03-12 Thread via Digitalmars-d-bugs
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

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-03-12 Thread via Digitalmars-d-bugs
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

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-03-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12420 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC|

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-03-10 Thread via Digitalmars-d-bugs
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

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-03-10 Thread via Digitalmars-d-bugs
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[]`

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-01-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12420 Denis Shelomovskij verylonglogin@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2014-06-21 Thread via Digitalmars-d-bugs
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.

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2014-06-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12420 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2014-03-30 Thread d-bugmail
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

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2014-03-29 Thread d-bugmail
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:

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2014-03-29 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12420 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #2