Why is D unpopular?

zjh fqbqrr at 163.com
Sun May 15 14:02:03 UTC 2022


On Sunday, 15 May 2022 at 13:41:31 UTC, Ola Fosheim Grøstad wrote:

> Not really, because they contain fragments of C-code. So if you 
> inject them straight into D-code it may look like gibberish to 
> the D compiler.

> So what you need to do is to use a parser that allows mixing D 
> and C code under the assumption that the C-tokens are tagged as 
> C and the D-tokens are tagged as D.
>
> This is probably possible (maybe requires some adjustments) 
> since D already is very close to C in its structure.
>

You are right,
This should be feasible.



More information about the Digitalmars-d mailing list