A Few thoughts on C, C++, and D

Wulfklaue via Digitalmars-d digitalmars-d at puremagic.com
Tue May 30 05:34:04 PDT 2017


On Tuesday, 30 May 2017 at 11:22:29 UTC, bachmeier wrote:
> One of the things I hated when I started using D was links to 
> dsource libraries. I think that writing new libraries in D is 
> often a mistake for that very reason. Bindings to C libraries 
> is what we need. Put everything into one D file if possible, 
> wrapping just the stable core functionality with a few 
> convenience features tossed in, and maintenance is no longer an 
> issue. There's nothing sexy abut that approach, and that's kind 
> of the point.

I do not see anything massive wrong with that idea, beyond that 
your are open to libraries written in C.  Potential unsafe memory 
function call inside the libraries...


More information about the Digitalmars-d mailing list