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

           Summary: Stride members' documentation comments are wrong
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optlink
        AssignedTo: nob...@puremagic.com
        ReportedBy: andrej.mitrov...@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2011-04-29 
21:39:22 PDT ---
It seems the following std.range Stride members have the exact same comments as
Retro. I guess it was a case of copy & paste, and its reflected in the online
documentation:

opIndex(size_t n);
    Forwards to input[input.length - n + 1]. Defined only if R is a random
access range and if R defines R.length.

void opIndexAssign(ElementType!(R) val, size_t n);
    Forwards to input[input.length - n + 1]. Defined only if R is a random
access range and if R defines R.length.

ElementType!(R) moveAt(size_t index);
    Forwards to input[input.length - n + 1]. Defined only if R is a random
access range and if R defines R.length.

typeof(this) opSlice(size_t a, size_t b);
    Forwards to input[input.length - n + 1]. Defined only if R is a random
access range and if R defines R.length.

---------------

These are all wrong. The first one should be:
'''
opIndex(size_t n);
    Forwards to input[n * n]. Defined only if R is a random access range and if
R defines R.length.
'''

and the rest need to be updated based on the implementation. (I think all of
these should be replaced with "input[n * n]")

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

Reply via email to