www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5308] New: std.conv documentation is behind implementation

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

           Summary: std.conv documentation is behind implementation
           Product: D
           Version: D2
          Platform: Other
               URL: http://digitalmars.com/d/2.0/phobos/std_conv.html
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: Jesse.K.Phillips+D gmail.com
                CC: Jesse.K.Phillips+D gmail.com



22:12:02 PST ---
The documentation on std.conv claims that to! will use a method called to in a
class to make conversions. This has not been true for some time now.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 01 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5308


Jesse Phillips <Jesse.K.Phillips+D gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|websites                    |Phobos
            Summary|std.conv documentation is   |std.conv should also use a
                   |behind implementation       |to function to convert to
                   |                            |other class types
           Severity|normal                      |enhancement



09:19:25 PST ---
Sorry, was testing it on classes, but the to function is used when it is not a
class.

So I have made it an enhancement request. And the request is either to allow it
for classes also, or remove it for non-classes and use opCast instead.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 02 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5308


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
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5308


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED



11:30:26 PST ---
The `to` method version is now deprecated and opCast is expected instead:

http://dlang.org/phobos/std_conv.html#toImpl

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