digitalmars.D.bugs - [Issue 1499] New: __trais: iterating over __traits(allMembers,...) with extern attributes does not compile
- d-bugmail puremagic.com (32/32) Sep 13 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1499
- d-bugmail puremagic.com (11/11) Feb 03 2010 http://d.puremagic.com/issues/show_bug.cgi?id=1499
- d-bugmail puremagic.com (12/12) Apr 14 2011 http://d.puremagic.com/issues/show_bug.cgi?id=1499
http://d.puremagic.com/issues/show_bug.cgi?id=1499 Summary: __trais: iterating over __traits(allMembers,...) with extern attributes does not compile Product: D Version: 2.004 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: jascha mainia.de traits.d(12): variable traits.main.m voids have no value traits.d(12): Error: foreach: void[0u] is not an array of int it compiles fine if "extern(Windows):" is omitted or non-extern declarations are added. in the latter case, the extern-members are not listed, though. #line 1 import std.stdio; interface D { extern(Windows): void foo(); int foo(int); } void main() { foreach ( m; __traits(allMembers, D) ) writefln(m); } --
Sep 13 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1499 Hoenir <mrmocool gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mrmocool gmx.de compiles with r360 now that allMembers returns a tuple rather than an array. BUT it crashes when the compiled program is run. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 03 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1499 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug yahoo.com.au Resolution| |FIXED Fixed between DMD2.012 and DMD2.020. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 14 2011