May 16, 2014 Re: D Newbie Trying to Use D with Major C Libraries | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tom Browder | On Friday, 16 May 2014 at 20:28:31 UTC, Tom Browder via Digitalmars-d-learn wrote: > On Fri, May 16, 2014 at 2:31 PM, Gary Willoughby via > Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote: >> On Friday, 16 May 2014 at 19:17:05 UTC, Dicebot wrote: >>> Using .di is more idiomatic as those are supposed to denote >>> declaration-only interface files (with no implementation). In practice it >>> makes almost no difference though so many people use plain .d by habit. > ... >> That's right. I always use .d files when porting C headers because i just >> see them as regular D code. I like to classify .di files as D 'headers' >> generated from pure D libraries (using the -H compiler switch). That's just >> my opinion though and to be honest i don't think it matters. :) > > Okay, Dicebot and Gary, that makes good sense I think, thanks. > > So I should use the ".d" for the binding source files since there will > almost certainly be implementation code in them. > > Best, > > -Tom Yeah , I do and Deimos does too: https://github.com/D-Programming-Deimos |
May 17, 2014 Re: D Newbie Trying to Use D with Major C Libraries | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex Herrmann | On Friday, 16 May 2014 at 18:19:45 UTC, Alex Herrmann wrote:
> On Friday, 16 May 2014 at 10:10:17 UTC, Tom Browder via
> Digitalmars-d-learn wrote:
>> Thanks for the suggestion, Frank, but I don't do windows.
>
> Monodevelop (open source C# dev platform) has a plugin for D by
> Alexander Bothe called Mono-D which is absolutely fantastic and
> integrates okay with dub too. There is also an emacs major mode
> for d (d-mode) which gives basic highlighting and indentation
> too. I use both all of these tools on my Arch linux set up and
> they work very well, and Mono-D has some debugging support too.
> Best of luck spreading D Tom! You're doing the lord's work son.
>
> Alex
I am very happy with d-mode in emacs.
|
May 17, 2014 Re: D Newbie Trying to Use D with Major C Libraries | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mengu | On Sat, May 17, 2014 at 2:28 PM, Mengu via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote: > On Friday, 16 May 2014 at 18:19:45 UTC, Alex Herrmann wrote: ... >> integrates okay with dub too. There is also an emacs major mode for d (d-mode) which gives basic highlighting and indentation too. I use both all of these tools on my Arch linux set up and they work very well ... > I am very happy with d-mode in emacs. Thanks for the reports, Alex and Mengu. I have installed the d-mode for xemacs but I don't have it working properly yet. I'll probably have to ask for help with that before too long. Best, -Tom |
Copyright © 1999-2021 by the D Language Foundation