www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4200] New: "to!real(to!string(real.min_normal))" raises std.conv.ConvError

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4200

           Summary: "to!real(to!string(real.min_normal))" raises
                    std.conv.ConvError
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: repeatedly gmail.com


--- Comment #0 from Masahiro Nakagawa <repeatedly gmail.com> 2010-05-17
06:48:20 PDT ---
On Mac OS X Snow Leopard, following code raises ConvError.

-----
to!real(to!string(real.min_normal));  // == to!real("3.3621e-4932")

std.conv.ConvError: Can't convert value `3.3621e-4932' of type const(char)[] to
type real
-----

On Windows XP, It works.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4200


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |andrei metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 09 2011