Re: Strange behaviour of __traits(allMembers)

2023-07-05 Thread IchorDev via Digitalmars-d-learn
On Wednesday, 28 June 2023 at 10:20:44 UTC, Dennis wrote: It's now fixed: https://github.com/dlang/dmd/pull/15335 Yesss! You're a hero indeed!

Re: Strange behaviour of __traits(allMembers)

2023-06-28 Thread Dennis via Digitalmars-d-learn
On Sunday, 18 June 2023 at 10:21:16 UTC, IchorDev wrote: Whaat why has this not been fixed in the last 4 years! It's now fixed: https://github.com/dlang/dmd/pull/15335

Re: Strange behaviour of __traits(allMembers)

2023-06-18 Thread FeepingCreature via Digitalmars-d-learn
On Sunday, 18 June 2023 at 10:21:16 UTC, IchorDev wrote: On Sunday, 18 June 2023 at 10:04:14 UTC, FeepingCreature wrote: On Sunday, 18 June 2023 at 09:48:40 UTC, IchorDev wrote: Does anyone understand why this happens? Is there any way to subvert this behaviour, or is it actually a bug? Yes,

Re: Strange behaviour of __traits(allMembers)

2023-06-18 Thread IchorDev via Digitalmars-d-learn
On Sunday, 18 June 2023 at 10:04:14 UTC, FeepingCreature wrote: On Sunday, 18 June 2023 at 09:48:40 UTC, IchorDev wrote: Does anyone understand why this happens? Is there any way to subvert this behaviour, or is it actually a bug? Yes, see also my bug report, https://issues.dlang.org/show_bu

Re: Strange behaviour of __traits(allMembers)

2023-06-18 Thread FeepingCreature via Digitalmars-d-learn
On Sunday, 18 June 2023 at 09:48:40 UTC, IchorDev wrote: Does anyone understand why this happens? Is there any way to subvert this behaviour, or is it actually a bug? Yes, see also my bug report, https://issues.dlang.org/show_bug.cgi?id=20008 "__traits(allMembers) of packages is complete non

Strange behaviour of __traits(allMembers)

2023-06-18 Thread IchorDev via Digitalmars-d-learn
`source/mod/submod.d:` ```d module mod.submod; enum T1{ x } ``` `source/mod/package.d`: ```d module mod; import mod.submod; enum T2{ y } enum T3{ z } static foreach(member; __traits(allMembers, mod)){ pragma(msg, member); } /**Prints: object T1 **/ ``` I get the members of `mod.submod` instea