[Issue 15038] Associative Array .get property const vs immutable

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Mar 10 13:11:24 PST 2016


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

ZombineDev <petar.p.kirov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov at gmail.com

--- Comment #2 from ZombineDev <petar.p.kirov at gmail.com> ---
While I agree that const should be as good as immutable in this case, sometimes
it is not so clear. For example, if the key type is immutable(char[])[], should
those be accepted:
1) immutable(char)[][]  (a.k.a. string[])
2) const(char)[][]
3) const(char[])[]

--


More information about the Digitalmars-d-bugs mailing list