static foreach over enum symbols
Boris Carvajal
boris2.9 at gmail.com
Sat Feb 15 12:39:40 UTC 2020
On Friday, 14 February 2020 at 22:24:14 UTC, Ben Jones wrote:
> Hi all,
>
> I'm getting unexpected results while trying to process symbols
> from a module, some of which are enums.
>
> Depending on whether or not I comment out the first static
> foreach loop below, fullyQualifiedName gives me different
> results in the second loop.
Looking more in detail it seems there is another peculiarity
happening here, it could be that a template instance get reused
(issue 14501). Not sure if it's really a bug or by design.
https://issues.dlang.org/show_bug.cgi?id=14501
More information about the Digitalmars-d-learn
mailing list