www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8705] New: std.conv.to bug, from documentation

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

           Summary: std.conv.to bug, from documentation
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: monarchdodra gmail.com



The example in conv's documentation does not compile.

Arguably, it should.

As discussed in this pull request:
https://github.com/D-Programming-Language/phobos/pull/811

----
int[string][double[int[]]] a;
auto b = to!(short[wstring][string[double[]]])(a);
----
src\phobos\std\conv.d(1383): Error: result[to(k1)] isn't mutable
----

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




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/d028ef99edd51684f99749d9a2172f95b992c955
fix issue 8705, from documentation

https://github.com/D-Programming-Language/phobos/commit/bbdbfc7bc0aad1d744b709188e71add3aa27f94a


fix issue 8705, from documentation

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




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/8f3e74b7448371bc89a5229ca4796bf2b53b8f4d
Fix for issue 8705 (from doc) (again)

https://github.com/D-Programming-Language/phobos/commit/2aceab7064cf7e97de6ddf62e78881a5ad25aebb


Fix for issue 8705 (from doc) (again)

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


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
            Version|unspecified                 |D2



More fix:
https://github.com/D-Programming-Language/phobos/pull/844

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




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/7afe2408dc1bbe91983314b46845febff00912e7
fix Issue 8705 - std.conv.to bug, from documentation

Mutable care is just necessary for value type, and doesn't need for key types.

https://github.com/D-Programming-Language/phobos/commit/0e22a37c8359c39fa8aca87212a77819ef136658


More fix for Issue 8705 - std.conv.to bug, from documentation

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


monarchdodra gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



Confirmed resolved by monarchdodra on 17 dec 2012.

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