[Issue 4603] array(iota(1, 0)) error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 19 17:07:13 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4603


David Simcha <dsimcha at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsimcha at yahoo.com


--- Comment #4 from David Simcha <dsimcha at yahoo.com> 2010-08-19 17:07:09 PDT ---
Fixed in changeset 1901.  I chose to throw in this case.  The proper way to
create an empty range would be to do iota(0, 0), or iota(1, 1).  The main
reason for this choice was consistency with array slicing.  For example, if
bounds checking is enabled, array[3..2] throws a RangeError.

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


More information about the Digitalmars-d-bugs mailing list