C++ launched its community survey, too

Jonathan M Davis newsgroup.d at jmdavisprog.com
Tue Feb 27 23:33:31 UTC 2018


On Tuesday, February 27, 2018 15:28:21 H. S. Teoh via Digitalmars-d wrote:
> On Tue, Feb 27, 2018 at 09:44:45PM +0000, bachmeier via Digitalmars-d 
wrote:
> > On Tuesday, 27 February 2018 at 21:07:03 UTC, H. S. Teoh wrote:
> > > Granted, though, this is a lot easier than having to write JNI
> > > wrappers or (carefully!) translate C headers into D.  It would be
> > > nice if you could actually just copy-n-paste a C header into an
> > > extern(C) block in D and have it Just Work(tm), but practically all
> > > C headers are dependent on macros one way or another that it would
> > > require including an entire C processor inside the D compiler, which
> > > is not exactly an inviting proposition.
> >
> > Walter has said that he has considered doing that now that DMC is
> > Boost licensed:
> > https://forum.dlang.org/post/p58q2l$1d35$1@digitalmars.com
>
> Wouldn't that cause compatibility issues with gdc/ldc?

It wouldn't if the idea were to move parts of dmc into the frontend, and
_something_ would have to be put in the frontend for such a thing, even if
it meant accessing the C/C++ compiler via library rather than adding the
C/C++ stuff into the frontend itself. But I don't know what Walter is
thinking exactly.

- Jonathan M Davis



More information about the Digitalmars-d mailing list