www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7937] New: Range iota.Result should be const where possible

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

           Summary: Range iota.Result should be const where possible
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: andre.stein.1985 gmail.com


--- Comment #0 from andre.stein.1985 gmail.com 2012-04-18 11:33:52 PDT ---
The operators opSlice and opIndex of iota.Result should be const as they don't
mutate the range. This allows passing the range as const to functions which
only use those two operators.

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


SomeDude <lovelydear mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear mailmetrash.com


--- Comment #1 from SomeDude <lovelydear mailmetrash.com> 2012-04-19 05:52:28
PDT ---
Is there a mailing-list discussion about this one ?

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


SomeDude <lovelydear mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs eml.cc


--- Comment #2 from bearophile_hugs eml.cc 2012-04-19 15:23:41 PDT ---
(In reply to comment #1)
 Is there a mailing-list discussion about this one ?
The place for discussions about a small and very specific bug is in Bugzilla threads. Larger general enhancement requests are probably better discussed first in the newsgroup. This enhancement request is small and very focused, so I think discussing it here is enough (but advertising it the newsgroup too is good). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 19 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7937



--- Comment #3 from SomeDude <lovelydear mailmetrash.com> 2012-04-19 15:47:50
PDT ---
The problem is, if noone is interested in discussing these in the forums, noone
will be interested in fixing these as it requires some effort. So all they do
is add a little bit of noise and die.

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



--- Comment #4 from bearophile_hugs eml.cc 2012-04-19 16:24:28 PDT ---
(In reply to comment #3)
 The problem is, if noone is interested in discussing these in the forums, noone
 will be interested in fixing these as it requires some effort.
Probably 70-80% of Bugzilla issues, if presented in the newsgroup, will produce no answers (or one-two answers top). Yet, many of them get fixed. Something similar happens for little enhancement requests. Newsgroups are not the right place for most bugs discussions. Newsgroups are mostly for the ones that are controversial, or require large changes, or cause breaking changes, etc. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 19 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7937


Jonathan M Davis <jmdavisProg gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg gmx.com


--- Comment #5 from Jonathan M Davis <jmdavisProg gmx.com> 2012-06-04 02:27:14
PDT ---
https://github.com/D-Programming-Language/phobos/pull/619

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



--- Comment #6 from github-bugzilla puremagic.com 2012-06-10 21:30:46 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/5ca9dd0fd97c2f4da82eae22e4c48827adc7e346
Fix for issue# 7937.

https://github.com/D-Programming-Language/phobos/commit/0f2c2571b61402d122144800f61cc43d283714c3
Merge pull request #619 from jmdavis/7937

Fix for issue# 7937.

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



--- Comment #7 from github-bugzilla puremagic.com 2012-06-10 21:32:19 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/c231c38c3f7303e43ff7caabbc4be98812a21376
Updated changelog for issue 7937.

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


Jonathan M Davis <jmdavisProg gmx.com> changed:

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


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