Why is D unpopular?
max haughton
maxhaton at gmail.com
Thu May 12 17:25:39 UTC 2022
On Thursday, 12 May 2022 at 17:04:27 UTC, H. S. Teoh wrote:
> On Thu, May 12, 2022 at 04:38:21PM +0000, Adam D Ruppe via
> Digitalmars-d wrote:
>> [...]
>
> Yeah, current D (without ImportC) + dstep (or just manual
> translation, really) is already very nice to work with, in
> terms of interfacing with C libraries. I've done a fair bit of
> work using this method, interfacing with libraries like libxcb,
> xlib, MPFR, freetype, sqlite, EGL, GLES2, etc., just to name a
> few.
>
> What will make ImportC stand out above the current situation is
> integrated preprocessor support, which apparently Walter
> already submitted a PR for. Once that's done and we can import
> C headers without creating a separate input file (either a .di
> or .d with dstep or manual preprocessing), *then* ImportC would
> have better value than what we currently have.
>
>
> T
Preprocessor support takes more than just preprocessing the C
source.
You need to be able to use the macros or it's useless. That's the
main thing dstep is able to do.
More information about the Digitalmars-d
mailing list