Why is D unpopular?
H. S. Teoh
hsteoh at quickfur.ath.cx
Fri May 13 17:27:01 UTC 2022
On Fri, May 13, 2022 at 01:12:38PM +0000, Adam D Ruppe via Digitalmars-d wrote:
> On Friday, 13 May 2022 at 13:04:24 UTC, Paolo Invernizzi wrote:
> > One thing I've not understood is why Walter decided not to integrate
> > warp ... I don't remember a clear motivation of this choice
>
> Using system headers means compatibility with the system preprocessor,
> which might have strange proprietary quirks.
>
> I don't know how much of a problem that is in practice (the current
> importC guidelines are to just #define away half the header), but that
> is the reasoning behind it.
>
> But you can still use the system preprocessor. There's an open PR to
> just shell out to it. Just this still leaves it less capable than
> dstep already is due to no work with the defined constants.
[...]
Walter's PR has been merged. So the latest dmd should be able to
preprocess .h files automatically now.
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.
T
--
Questions are the beginning of intelligence, but the fear of God is the beginning of wisdom.
More information about the Digitalmars-d
mailing list