[Issue 8516] New: std.string.representation works incorrect for shared(const(T)) types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 7 00:16:48 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8516
Summary: std.string.representation works incorrect for
shared(const(T)) types
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2012-08-07 11:16:46 MSD ---
---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list