A gentle critque..
Derek Parnell
derek at psych.ward
Sun May 14 23:53:21 PDT 2006
On Sun, 14 May 2006 23:22:56 -0700, Walter Bright wrote:
> Derek Parnell wrote:
>> But all joking aside, it just occurred to me that Digitalmars already has a
>> tool that accesses C/C++ headers ... the DigitalMars C++ compiler! So I'm
>> wondering if Walter could provide a new utility that can help us automate
>> translation of C/C++ headers into D source code?
>
> There's no way to do that with C++ - just take a look at any Boost
> headers :-). It is possible to do a 90% automatic translation of C headers.
May I repeat a portion of my post please ...
"a new utility that can **help** us automate
translation of C/C++ headers into D source code"
I know that 100% automated translation is not practical. However, as
DigitalMars already has a C/C++ parser that works, I was thinking that a
tool based on that parser to created a best-effort translation and
highlighted that which needs human effort might be a useful addition to the
D tool set. Whatever you have now as a C/C++ parser has got to be better
than writing a new one from scratch. I'm not asking for the source code for
that parser, just a tool that would output something that could be tweaked
into D code by either (or both) another tool or person.
--
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
15/05/2006 4:47:55 PM
More information about the Digitalmars-d
mailing list