From: Thierry Banel <tbanelwebmin@free.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Babel support for the D language
Date: Sun, 1 Dec 2013 18:43:55 +0000 (UTC) [thread overview]
Message-ID: <loom.20131201T192324-994@post.gmane.org> (raw)
In-Reply-To: 877gbotpm4.fsf@gmail.com
Eric Schulte <schulte.eric <at> 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 <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
> >
>
> 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
next prev parent reply other threads:[~2013-12-01 18:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-28 17:06 Babel support for the D language Thierry Banel
2013-11-28 17:51 ` Thomas S. Dye
2013-11-28 19:02 ` Thierry Banel
2013-11-28 20:57 ` Thomas S. Dye
2013-11-28 22:32 ` Nick Dokos
2013-11-29 7:40 ` Thierry Banel
2013-11-29 15:06 ` Nick Dokos
2013-11-29 20:19 ` Thierry Banel
2013-11-30 7:42 ` Thierry Banel
2013-11-30 17:56 ` Thomas S. Dye
2013-12-01 14:08 ` Thierry Banel
2013-12-01 14:13 ` Eric Schulte
2013-12-01 16:08 ` Thierry Banel
2013-12-01 18:04 ` Eric Schulte
2013-12-01 18:43 ` Thierry Banel [this message]
2013-12-14 18:49 ` Thierry Banel
2013-12-15 21:35 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20131201T192324-994@post.gmane.org \
--to=tbanelwebmin@free.fr \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).