[Issue 8567] New: isDynamicArrray!S == true for S with alias this to array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 20 08:40:27 PDT 2012


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

           Summary: isDynamicArrray!S == true for S with alias this to
                    array
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: dsimcha at yahoo.com


--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2012-08-20 08:40:26 PDT ---
import std.traits;

struct S {
    string name() @property { assert(0); }
    alias name this;
}

static assert(!isDynamicArray!S);  // Fails

The same issue probably applies to several other std.traits members.

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