What are (were) the most difficult parts of D?

Anonymouse zorael at gmail.com
Thu May 12 19:32:00 UTC 2022


On Thursday, 12 May 2022 at 16:48:05 UTC, H. S. Teoh wrote:
> static foreach isn't meant to handle large loops. Writing 
> `static foreach (i; 0 .. 60000)` is generally a bad idea; my 
> suspicion is that the compiler ran out of stack space).  It's 
> more for unfolding groups of statements or declarations like 
> cases in a switch-statement.

I understand, but I don't think I had any static foreaches in my 
code at the time. My case was more comment #10.


More information about the Digitalmars-d-learn mailing list