Why is D unpopular?

IGotD- nise at nise.com
Fri May 13 17:35:35 UTC 2022


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.


More information about the Digitalmars-d mailing list