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: nob...@puremagic.com
        ReportedBy: verylonglogin....@gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin....@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: -------

Reply via email to