From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Babel support for the D language Date: Sun, 01 Dec 2013 11:04:03 -0700 Message-ID: <877gbotpm4.fsf@gmail.com> References: <52977819.6000901@free.fr> <87bo10u09u.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnBO9-00060M-E1 for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 13:05:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnBO4-0000Ya-6E for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 13:05:01 -0500 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]:44828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnBO3-0000YU-Uw for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 13:04:56 -0500 Received: by mail-pd0-f176.google.com with SMTP id w10so16521245pde.21 for ; Sun, 01 Dec 2013 10:04:55 -0800 (PST) In-Reply-To: (Thierry Banel's message of "Sun, 1 Dec 2013 16:08:03 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thierry Banel Cc: emacs-orgmode@gnu.org Thierry Banel writes: > Eric Schulte 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 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 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 > Great, I think this incorporation into ob-C.el would be the next logical step. You'd want to use the `org-babel-c-variant' in the same manner as C++ does currently. But there's no rush, and any changes there couldn't be merged until after your FSF copyright assignment forms have been completed. Best Regards, > > > > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D