[Issue 5298] New: Template identifier in template scope short hand is undocumented.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 1 05:35:09 PST 2010


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

           Summary: Template identifier in template scope short hand is
                    undocumented.
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: websites
        AssignedTo: nobody at puremagic.com
        ReportedBy: blood.of.life at gmail.com


--- Comment #0 from Bernard Helyer <blood.of.life at gmail.com> 2010-12-01 05:33:40 PST ---
The following behaviour:

class C(T) {
    C[] ary;

    void foo() {
        foreach( a; ary ) {
            a.bar();
        }
    }

    void bar() {
    }
}

where C gets the type of the current instantiation is undocumented.

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