Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 17, 2009 [Issue 3256] New: getMember static foreach inconsistency | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3256 Summary: getMember static foreach inconsistency Product: D Version: 2.031 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: alvcastro@yahoo.es final class D { static void m1(){ writeln("VOmito 1"); } static void m2(){ writeln("VOmito 2"); } static void m3(){ writeln("VOmito 3"); } } template Tuple(E...) { alias E Tuple; } template MembersTuple(D, int i = 0) { static if (__traits(derivedMembers, D).length > i) { alias Tuple!(__traits(derivedMembers, D)[i], .MembersTuple!(D,i+1)) MembersTuple; } else { alias Tuple!() MembersTuple; } } int main (string[] args) { alias MembersTuple!(D) dMem; foreach( i, member ; dMem ) { __traits(getMember, D, dMem[i] )(); // -> Compiles __traits(getMember, D, member )(); // -> Doesn't compile } return 0; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 12, 2011 [Issue 3256] getMember static foreach inconsistency | ||||
---|---|---|---|---|
| ||||
Posted in reply to alvcastro@yahoo.es | http://d.puremagic.com/issues/show_bug.cgi?id=3256 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |FIXED --- Comment #1 from yebblies <yebblies@gmail.com> 2011-06-12 14:05:04 PDT --- Closing as this works now (dmd2.053) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 12, 2011 [Issue 3256] getMember static foreach inconsistency | ||||
---|---|---|---|---|
| ||||
Posted in reply to alvcastro@yahoo.es | http://d.puremagic.com/issues/show_bug.cgi?id=3256 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennytm@gmail.com --- Comment #2 from kennytm@gmail.com 2011-06-12 14:40:33 PDT --- I think we should create a unit-test for every "turns out it works now" bug. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 12, 2011 [Issue 3256] getMember static foreach inconsistency | ||||
---|---|---|---|---|
| ||||
Posted in reply to alvcastro@yahoo.es | http://d.puremagic.com/issues/show_bug.cgi?id=3256 --- Comment #3 from yebblies <yebblies@gmail.com> 2011-06-12 14:47:08 PDT --- Probably not a bad idea. I'll start shoving the ones I close into a file. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation