On Tuesday, 12 May 2026 at 04:35:41 UTC, Alex wrote:
Thanks for trying to reproduce the error, though it is genuine.
I just literally created a fresh Visual Studio Project on
Windows with the copied text. Here is the unmodified code
running, with writelns.
...
I may be new to D, but not programming in general. This
inconsisitency bemuses me too.
This may be an issue specific to Windows perhaps, rather than
your Mac etc. I tried the LDC Windows compiler with same
results. GDC Windows didn't want to compile.
Putting a try{} around the dirEntries() too seems to resolve
this to a proper FileException rather than Throwable, but still
a bit surprised at this.
OK, I'm on board. This seems like an issue with codegen. Thank
you for pasting the full output, this will help to reproduce.
In the meantime, can you try some things?
1. Try from the command line (not visual D).
2. Download the latest DMD (2.110 is 2 versions behind) and try
again.
I'll try on my windows system and see if I can reproduce it.
-Steve