From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: Babel support for the D language Date: Sun, 1 Dec 2013 18:43:55 +0000 (UTC) Message-ID: References: <52977819.6000901@free.fr> <87bo10u09u.fsf@gmail.com> <877gbotpm4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnC0K-0003vF-6n for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 13:44:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnC0C-0004O4-SF for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 13:44:28 -0500 Received: from plane.gmane.org ([80.91.229.3]:42863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnC0C-0004O0-LN for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 13:44:20 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VnC0B-0007j9-4d for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 19:44:19 +0100 Received: from mna75-5-82-226-29-239.fbx.proxad.net ([82.226.29.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Dec 2013 19:44:19 +0100 Received: from tbanelwebmin by mna75-5-82-226-29-239.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Dec 2013 19:44:19 +0100 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: emacs-orgmode@gnu.org Eric Schulte gmail.com> 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, > > > > > > > > > > Differences between D and C++ will introduce more (cond ((equal org-babel-c-variant ...)) constructs throughout the file. But that is the very purpose of org-babel-c-variant, isn'it ? One of the differences is that C or C++ requires two org-babel-eval -- one for the compiler, another for the executable -- whereas D requires only one. I will look at that while the copyright stuff is being done. Thanks, Eric (and Bastien and Thomas and Nick), for your warm welcome in the Org world. Thierry