| Thread overview | ||||||
|---|---|---|---|---|---|---|
|
March 09, 2020 [Issue 20648] static foreach over allMembers of module doesn't seem to work | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20648 Boris Carvajal <boris2.9@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |boris2.9@gmail.com --- Comment #1 from Boris Carvajal <boris2.9@gmail.com> --- But "__traits(allMembers" returns a tuple of strings. You can use mixin to get a type (2.088+) or getMember. --- else static if (is(mixin(Tys[0]) == struct)) alias ScrapeStructs = AliasSeq!(mixin(Tys[0]), ScrapeStructs!(Tys[1 .. $])); --- -- | ||||
March 09, 2020 [Issue 20648] static foreach over allMembers of module doesn't seem to work | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20648 --- Comment #2 from Manu <turkeyman@gmail.com> --- Oh yeah, ffs... Sorry! Stupid mistake! >_< -- | ||||
March 09, 2020 [Issue 20648] static foreach over allMembers of module doesn't seem to work | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20648 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |b2.temp@gmx.com Resolution|--- |INVALID -- | ||||
March 21, 2020 [Issue 20648] static foreach over allMembers of module doesn't seem to work | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20648 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|b2.temp@gmx.com | -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply