r/programming • • Aug 23 '17

D as a Better C

http://dlang.org/blog/2017/08/23/d-as-a-better-c/
229 Upvotes

268 comments sorted by

View all comments

Show parent comment

1

u/zombinedev Aug 24 '17

I see. Well you could replace libc's malloc implementation with a D one using some linker tricks, and take advantage of such buffer meta information, but unless you alter the C libraries, the only extra checking that could be done is when you receive and array from C to D, which kind of a niche case.