Thread overview
[Issue 4798] New: std.algorithm.map unusable for ranges with const elements
Sep 03, 2010
Pelle Månsson
September 03, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4798

           Summary: std.algorithm.map unusable for ranges with const
                    elements
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: pelle.mansson@gmail.com


--- Comment #0 from Pelle Månsson <pelle.mansson@gmail.com> 2010-09-03 04:16:10 PDT ---
std.algorithm.map uses a cache internally, and can therefore not be used with ranges of const elements.

I feel this limitation is somewhat unfounded. Map does not need a cache.

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


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: -------
February 26, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4798


Andrei Alexandrescu <andrei@erdani.com> changed:

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


--- Comment #1 from Andrei Alexandrescu <andrei@erdani.com> 2013-02-26 09:09:58 PST ---
We've remove map's caching a while ago. Thanks!

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