[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Babel support for the D language
From: |
Thierry Banel |
Subject: |
Re: [O] Babel support for the D language |
Date: |
Sun, 1 Dec 2013 16:08:03 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Eric Schulte <schulte.eric <at> gmail.com> writes:
>
> Hi Thierry,
>
> I've added ob-D.el to the contrib/lisp directory of Org-mode. Would it
> make sense to add D as a c-variant in ob-C.el?
>
> Thanks for the contribution, and for the documentation!
>
> Thierry Banel <tbanelwebmin <at> free.fr> writes:
>
Hi Eric
That's awsome !
Yes, it would make sense, as D and C++ share a lot.
There are differences, though:
tables are translated as:
string[][]; in D
char*[]; in C++
includes are translated as:
import std.stdio; in D
#include <stdio> in C++
But yes, probably sharing a single ob-C.el file would save some maintenance
effort. And by the way, ob-D.el was directly inspired by your ob-C.el.
I'm open and willing to go further.
Thierry