www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8516] New: std.string.representation works incorrect for shared(const(T)) types

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: verylonglogin.reg gmail.com



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: -------
Aug 07 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8516




11:18:44 MSD ---
https://github.com/D-Programming-Language/phobos/pull/742

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 07 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8516




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


Fix Issue 8516 - std.string.representation works incorrect for shared(const(T))
types

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 12 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8516


klickverbot <code klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |code klickverbot.at
         Resolution|                            |FIXED



---
Fixed in Git master.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 21 2012