www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12333] New: std.conv.to: Safe conversion of character types

https://d.puremagic.com/issues/show_bug.cgi?id=12333

           Summary: std.conv.to: Safe conversion of character types
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow gmail.com> 2014-03-09
20:29:34 EET ---
From http://forum.dlang.org/post/knrwiqxhlvqwxqshyqpy forum.dlang.org:

std.conv.to should allow converting between character 
types, iff they represent one whole code point and fit into the 
destination type, and throw an exception otherwise (similar to 
how it deals with integer overflow).

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 09 2014