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
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
Try `__MODULE__`?
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