Re: Splitting a project into different executable files

2024-10-24 Thread Andrey Zherikov via Digitalmars-d-learn
On Saturday, 12 October 2024 at 01:09:56 UTC, Alexander Zhirov wrote: Is it possible to organize a project that will consist of several main files. I want to write several simple programs in one project, but for them to be divided into different files. So that it would be possible to choose dur

Re: std.algorithm.countUntil and alias

2024-10-24 Thread Anton Pastukhov via Digitalmars-d-learn
On Wednesday, 23 October 2024 at 18:39:15 UTC, H. S. Teoh wrote: The key here is to understand that "alias" != "macro". Re-reading this topic today and indeed that was the missing piece. I was sure that alias is just a compile-time string replacement akin to C macros, just with some niceties

Re: Is it intentional that `__FILE_FULL_PATH__` is **not** normalized?

2024-10-24 Thread Kagamin via Digitalmars-d-learn
Try `__MODULE__`?

Re: std.algorithm.countUntil and alias

2024-10-24 Thread Salih Dincer via Digitalmars-d-learn
On Wednesday, 23 October 2024 at 15:25:48 UTC, Salih Dincer wrote: If it were me, I would equip my type with aliases like below. But for some reason I don't understand, the enum Numbers works, while the enum Test which is of type string doesn't! I figured out why it wasn't working. It turns