[Issue 10087] std.range.chunks problem with chunkSize = 0
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 11 13:33:08 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=10087
Peter Alexander <peter.alexander.au at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter.alexander.au at gmail.co
| |m
--- Comment #1 from Peter Alexander <peter.alexander.au at gmail.com> 2014-02-11 13:33:00 PST ---
Hmm, not sure what the benefit of rejecting chunks(r, 0) is.
Sure, it's pointless to take a range in chunks of 0, but it's well-defined.
My worry is that someone is using chunks in some generic code somewhere that
genuinely asks for chunkSize of 0 in some cases. Implementing your suggestion
will break their code for no benefit.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list