www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15046] New: [REG2.068] isForwardRange documentation is


          Issue ID: 15046
           Summary: [REG2.068] isForwardRange documentation is documenting
                    issue 14544
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: k.hara.pg gmail.com

See: http://dlang.org/phobos/std_range_primitives#isForwardRange

The "Examples" section is now:
static assert(!isForwardRange!(int));
static assert( isForwardRange!(int[]));
static assert( isForwardRange!(inout(int)[]));

// BUG 14544
struct R14544
    int front() { return 0;}
    void popFront() {}
    bool empty() { return false; }
    R14544 save() {return this;}

static assert( isForwardRange!R14544 );

I think BUG 14544 should not be documented.

Sep 12 2015