[Issue 11245] [REG 2.063] Can't access length of static arrays from within classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 14 15:17:53 PDT 2013


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> 2013-10-14 15:17:52 PDT ---
The repro case:
-----------------------
struct Vec2
{
  float f[2];
}

class Bar
{
    void func()
    {
      float[Vec2.f.length] newVal;
    }
}

void main(string[] args)
{
  (new Bar).func();
}

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