A gentle critque..

Walter Bright newshound at digitalmars.com
Mon May 15 00:35:59 PDT 2006


Derek Parnell wrote:
> 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.

One of my concerns about me writing such a tool is that people will have 
too high expectations of it, and when it fails to deliver 100% automated 
conversion, it'll give the rest of D a bad image.

The first thing someone new to D will do is try to run the converter 
across all their C header files. The converter will fail miserably. 
They'll just dismiss D as a buggy piece of ****.



More information about the Digitalmars-d mailing list