Interfacing D with C and Fortran

data pulverizer via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 4 09:19:13 PDT 2017


Thanks for the constructive feedback! Glad you liked the article.

On Tuesday, 4 April 2017 at 15:40:49 UTC, jmh530 wrote:
>
> I liked it. Here are my thoughts:
>
> In some cases, there were bits that I don't follow as well like 
> where you have
> $ nm example1.o
> and its results

You're right some more explanation here would be useful

> You might want to highlight that betterC is not well documented 
> and provide a few more details on what it means, what are the 
> limitations, etc.

True, there isn't a lot of material around about this flag and 
I'd appreciate some more details from those "in the know", @9il 
knows more about this than I do.

> You wrote an apply function. Is phobos' map not compatible with 
> betterC? Maybe mention that mir has a map function in ndslice 
> algorithm that could be a betterC alternative.

@9il and I agreed that we would keep this article dependency free 
but we can include links to those alternatives.

> You also discuss template alias parameters when talking about 
> apply. Template aliases seem a bit like magic to me. Sure, I've 
> used them, but still seem like magic. And I don't think the D 
> docs do a great job explaining it. Maybe give a short 
> explanation in addition to what is there (perhaps as a 
> footnote?).

Wow a footnote! This might look like a real article :-) That was 
a joke! We can add a short description with links. I think a 
detailed article can be written on template alias parameters 
alone.

Thanks a lot for your feedback. It is much appreciated



More information about the Digitalmars-d mailing list