Thread overview |
---|
September 13, 2007 [Issue 1499] New: __trais: iterating over __traits(allMembers,...) with extern attributes does not compile | ||||
---|---|---|---|---|
| ||||
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); } -- |
February 03, 2010 [Issue 1499] __trais: iterating over __traits(allMembers,...) with extern attributes does not compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1499 Hoenir <mrmocool@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mrmocool@gmx.de --- Comment #1 from Hoenir <mrmocool@gmx.de> 2010-02-03 05:24:30 PST --- 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: ------- |
April 14, 2011 [Issue 1499] __trais: iterating over __traits(allMembers,...) with extern attributes does not compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 --- Comment #2 from Don <clugdbug@yahoo.com.au> 2011-04-14 15:22:01 PDT --- Fixed between DMD2.012 and DMD2.020. -- 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