Bug 8516 – std.string.representation works incorrect for shared(const(T)) types

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-07T00:16:00Z
Last change time
2012-08-21T08:31:53Z
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2012-08-07T00:16:46Z
--- import std.string; static assert(is(typeof(representation(cast(shared(const(char))[]) "hello")) == shared(const(ubyte)))); // Fails --- Also `representation` implementation is ugly and documentation tells that it "Returns the representation type" that is incorrect because it returns a value as it's a function.
Comment #1 by verylonglogin.reg — 2012-08-07T00:18:44Z
Comment #2 by github-bugzilla — 2012-08-12T19:21:14Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/ef10bdf6bcc27eebe6f6911214e0fd285fa6018f Fix Issue 8516 - std.string.representation works incorrect for shared(const(T)) types https://github.com/D-Programming-Language/phobos/commit/e68ec9c4d04f66a6c9155326d0b831c2b82898da Merge pull request #742 from denis-sh/fix-issue-8516 Fix Issue 8516 - std.string.representation works incorrect for shared(const(T)) types
Comment #3 by code — 2012-08-21T08:31:53Z
Fixed in Git master.