This would be correct if `i_am_a_feature` would be always defined, just set to `false` if not existent. But I think the idea was to not define the symbol at all if feature does not exists. In that case, the condition should be `static if(is(typeof(i_am_a_feature)))`.static if(i_am_a_feature) { ... }
Re: Dlang equivalent of #define/#ifdef : not... version
Dukc via Digitalmars-d-learn Tue, 20 Apr 2021 23:40:53 -0700
On Tuesday, 20 April 2021 at 23:58:46 UTC, Steven Schveighoffer
wrote:
- Dlang equivalent of #define/#... ichneumwn via Digitalmars-d-learn
- Re: Dlang equivalent of ... mw via Digitalmars-d-learn
- Re: Dlang equivalent of ... Simen Kjærås via Digitalmars-d-learn
- Re: Dlang equivalent... Ali Çehreli via Digitalmars-d-learn
- Re: Dlang equivalent of ... Steven Schveighoffer via Digitalmars-d-learn
- Re: Dlang equivalent... Dukc via Digitalmars-d-learn
- Re: Dlang equiva... Steven Schveighoffer via Digitalmars-d-learn
- Re: Dlang equivalent of ... ichneumwn via Digitalmars-d-learn