On Friday, 5 August 2022 at 01:46:35 UTC, Paul Backus wrote:
On Thursday, 4 August 2022 at 23:11:36 UTC, pascal111 wrote:
One of problems faced me in C programming is hacking data with C code that some hackers do with C code which make me needs more tools to protect my C code, but I don't have good resources in my current time, while I noticed that D code is more secure than C code by mean it will be more useful to do my codes in my current time.

My question is, to which extent D code is secure and helping in protect data?

Probably the biggest safety features of D are bounds checking for arrays, garbage collection, and default initialization of variables.

If you use `@safe`, you can get even better protection, at the cost of some minor restrictions. But even without that, D is a lot safer than C.

I noticed the word "@safe" but didn't read about its definition yet to know what it does, but I heard about "garbage collection", and yes it is good modern technique.

Reply via email to