[Issue 20032] ImmutableOf!char[] The result is incorrect.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 7 10:59:20 UTC 2019


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

ag0aep6g <ag0aep6g at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ag0aep6g at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from ag0aep6g <ag0aep6g at gmail.com> ---
(In reply to shove from comment #0)
>     alias A = char[];
>     alias ImmuTypeA = ImmutableOf!A;
>     pragma(msg, ImmuTypeA);    // -> immutable(string), Should be:
> immutable(char[])

immutable(string) and immutable(char[]) are the same type.

string = immutable(char)[]
immutable(string) = immutable(immutable(char)[]) = immutable(char[])

I'm closing this issue as invalid. Feel free reopen if I'm missing the point.

--


More information about the Digitalmars-d-bugs mailing list