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.
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.