Another use case for __traits(docComment)
Dennis
dkorpel at gmail.com
Thu Nov 14 20:37:03 UTC 2019
On Thursday, 14 November 2019 at 17:18:40 UTC, Jab wrote:
>>> Here's a counter example to your example:
>>> https://github.com/dlang/dmd/pull/10013
>>
>> I actually think that got merged too quickly without thinking
>> all special cases and consequences through.
>
> Has there been any consequences?
I luckily haven't seen anything bad yet, though it's really new.
I would say a consequence is that it makes re-ordering
module-level declarations a potentially code-breaking change,
though that information was already leaked with __LINE__,
__traits(allMembers) and some DMD bugs [1] so 'luckily' the
programmer couldn't count on that anyway.
[1] https://issues.dlang.org/show_bug.cgi?id=9125
More information about the Digitalmars-d
mailing list