[Issue 7304] New: Online docs incorrect with regards to covariant arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 17 16:01:07 PST 2012


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

           Summary: Online docs incorrect with regards to covariant arrays
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody at puremagic.com
        ReportedBy: jmdavisProg at gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-01-17 16:01:04 PST ---
http://www.d-programming-language.org/arrays.html

The docs claim that

A dynamic array T[] can be implicitly converted to one of the following:

U[]
void[]
Where U is a base class of T.

Now that bug# 2095 has been fixed, this is incorrect. It should say

const(U)[]
const(U[])
void[]
Where U is a base class of T.

-- 
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