On 2/8/2015 5:41 PM, Walter Bright wrote:
I propose a std.test.ranges package, which contains templates defining each of
the range types (InputRange, BiDirectionalRange, etc.). Each accepts an argument
which is a static array of T, and then implements exactly the range interface
indicated by its name, nothing more. The range will also have asserts to
guarantee they are used correctly, i.e. front() cannot be called before empty()
returns false.

Here's another stab at it:

http://digitalmars.com/sargon/asinputrange.html

Reply via email to