Why is D unpopular?

Walter Bright newshound2 at digitalmars.com
Fri May 13 18:44:22 UTC 2022


On 5/13/2022 10:27 AM, 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.

cpp and cl all have the ability to emit all the macro definitions to stdout at 
the end of a run. (I intend to add it to sppn.) The idea is to intercept that 
output, look for #define patterns we can deal with, and deal with them.

It's straightforward, it will just take some coding.


More information about the Digitalmars-d mailing list