Re: How to use dmd code coverage

2021-11-11 Thread foxit via Digitalmars-d-learn
On Thursday, 11 November 2021 at 22:35:21 UTC, forkit wrote: On Thursday, 11 November 2021 at 21:40:33 UTC, Ali Çehreli wrote: On 11/11/21 1:37 PM, forkit wrote: dmd test.d -cov ...but no .lst file anywhere to be found. Huh! I don't get it. Please run the program! :) Ali oh! that kinda m

Re: Completing C code with D style

2021-11-11 Thread foxit via Digitalmars-d-learn
On Thursday, 11 November 2021 at 23:41:48 UTC, kdevel wrote: On Thursday, 11 November 2021 at 22:30:12 UTC, forkit wrote: [...] for(int i = 0; i < sizeof(numbers) / sizeof(int); ++i) // is so much safer - in C style I made it even safer: for (int i = 0; i < sizeof numbers / sizeof *nu

Re: Completing C code with D style

2021-11-11 Thread foxit via Digitalmars-d-learn
On Friday, 12 November 2021 at 01:05:15 UTC, Stanislav Blinov wrote: On Thursday, 11 November 2021 at 22:10:04 UTC, forkit wrote: It's called 'staged learning'. Staged learning is the only way for humans to learn, due to the limitations of the human cognitive system. Specifically, the way sh