[Issue 11245] [REG 2.063] Can't access length of static arrays from within classes
http://d.puremagic.com/issues/show_bug.cgi?id=11245 --- Comment #6 from github-bugzi...@puremagic.com 2013-10-18 13:24:09 PDT --- Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a913ce4bc59a94a022a27e390fc841f4aededffb Merge pull request #2679 from 9rnsr/fix11245 [REG2.063] Issue 11245 - Can't access length of static arrays from within classes -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 11245] [REG 2.063] Can't access length of static arrays from within classes
http://d.puremagic.com/issues/show_bug.cgi?id=11245 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 11245] [REG 2.063] Can't access length of static arrays from within classes
http://d.puremagic.com/issues/show_bug.cgi?id=11245 --- Comment #5 from github-bugzi...@puremagic.com 2013-10-18 13:23:14 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9ed249a167eaac3ccf37c02a88cddbc27d02b683 fix Issue 11245 - Can't access length of static arrays from within classes https://github.com/D-Programming-Language/dmd/commit/87664d93149f24cc70a253742f4c25ece9ab472f Merge pull request #2679 from 9rnsr/fix11245 [REG2.063] Issue 11245 - Can't access length of static arrays from within classes -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 11245] [REG 2.063] Can't access length of static arrays from within classes
http://d.puremagic.com/issues/show_bug.cgi?id=11245 Kenji Hara changed: What|Removed |Added Keywords||pull --- Comment #4 from Kenji Hara 2013-10-18 09:25:15 PDT --- https://github.com/D-Programming-Language/dmd/pull/2679 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 11245] [REG 2.063] Can't access length of static arrays from within classes
http://d.puremagic.com/issues/show_bug.cgi?id=11245 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #3 from Walter Bright 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: ---
[Issue 11245] [REG 2.063] Can't access length of static arrays from within classes
http://d.puremagic.com/issues/show_bug.cgi?id=11245 --- Comment #2 from Benjamin Thaut 2013-10-13 11:46:54 PDT --- The length of f is known at compile time. There is no need for a this pointer to access it. Also it works if you put the same code into a regular function. It stops working inside methods. Additionaly this is a regression. It used to work in dmd 2.060. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 11245] [REG 2.063] Can't access length of static arrays from within classes
http://d.puremagic.com/issues/show_bug.cgi?id=11245 rswhi...@googlemail.com changed: What|Removed |Added CC||rswhi...@googlemail.com --- Comment #1 from rswhi...@googlemail.com 2013-10-13 11:40:29 PDT --- IMO this is correct, because f is not static and belongs to a struct instance. Or did I miss something? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---