Thread overview
[Issue 8567] New: isDynamicArrray!S == true for S with alias this to array
Aug 20, 2012
David Simcha
Feb 05, 2013
Maksim Zholudev
Feb 06, 2013
Kenji Hara
August 20, 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@puremagic.com
        ReportedBy: dsimcha@yahoo.com


--- Comment #0 from David Simcha <dsimcha@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: -------
February 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8567


Maksim Zholudev <maximzms@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |maximzms@gmail.com
         Resolution|                            |WORKSFORME


--- Comment #1 from Maksim Zholudev <maximzms@gmail.com> 2013-02-05 08:04:06 PST ---
Works with both DMD 2.061 and DMD+phobos from Git head.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 06, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8567


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |FIXED


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-02-05 17:48:56 PST ---
Fixed in 2.061.

https://github.com/D-Programming-Language/phobos/commit/43fdbc83a1e710f30f8fc6cf464636f69487267b

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