Why is D unpopular?
Paul Backus
snarwin at gmail.com
Fri May 13 17:46:05 UTC 2022
On Friday, 13 May 2022 at 17:35:35 UTC, IGotD- wrote:
> On Friday, 13 May 2022 at 17:27:01 UTC, H. S. Teoh wrote:
>>
>> As for #define'd manifest constants, wouldn't it just be a
>> matter of adding a separate pass over the .h file to extract
>> #define's that look like they can be transformed into enum
>> constants? Shouldn't be *that* hard to do, in theory anyway.
>>
>
> There must be a similar way as with C compilers (the -D command
> line option) to inject defines. The D compiler must add this so
> that import C constants can be defined at the command line
> otherwise we have that extra custom build step again.
Most likely the D compiler will provide some way to pass
arbitrary command-line options to the C preprocessor, just like
it does for the linker (-Lwhatever).
More information about the Digitalmars-d
mailing list