[SAoC2022] Replace libdparse with dmd-as-a-library in D-Scanner
Lucian Danescu
lucidanescu28 at yahoo.com
Wed Dec 14 15:35:22 UTC 2022
On Wednesday, 14 December 2022 at 04:38:59 UTC, rikki cattermole
wrote:
> On 14/12/2022 6:31 AM, Lucian Danescu wrote:
>> The problems come from `static if` and `version` conditions,
>> as these do not introduce a new scope, and for me at least it
>> is not yet 100% clear how to treat them, as things get really
>> complicated when we have many `static if` mixed with `version`.
>
> Because of string mixins and CTFE I'm not sure this can be 100%.
>
> I'd argue the example code is bad anyway, it could be
> simplified and it won't be as easy to error.
Well, in phobos there are examples with a lot more imbricated
`static if` and `version`. Regarding mixins, true they are
ditched for this check. For me it's not really clear how to treat
the `static if` and `version` statements.
More information about the Digitalmars-d
mailing list