Since memory serves I use to name files with - instead of the
more common _
On Monday, 21 June 2021 at 03:32:58 UTC, someone wrote:
Since memory serves I use to name files with - instead of the
more common _
The module name has to be strict and "-" is not allowed.
However, you should be able to import files with a "-" in the
name.
From the manual:
If the file name
On 6/21/21 4:55 AM, frame wrote:
On Monday, 21 June 2021 at 03:32:58 UTC, someone wrote:
Since memory serves I use to name files with - instead of the more
common _
The module name has to be strict and "-" is not allowed.
However, you should be able to import files with a "-" in the name.
Fr
On Monday, 21 June 2021 at 13:29:59 UTC, Steven Schveighoffer
wrote:
It does work. However, you have to tell the compiler the file
to compile.
Which completely ignores filenames if the compiler is satisified.
You may assume by reading the manual that the compiler would make
an automatic tra
On Monday, 21 June 2021 at 13:29:59 UTC, Steven Schveighoffer
wrote:
It does work. However, you have to tell the compiler the file
to compile.
When an import is used, the compiler does 2 stages:
1. Search through already-seen modules, and see if one matches
2. Search the filesystem to find a
On Monday, 21 June 2021 at 13:29:59 UTC, Steven Schveighoffer
wrote:
That being said, I strongly recommend just to name the file the
same as the module name.
Although you made it clear that you do not favor this use-case I
am really satisfied with your solution because, at least to me,
has
On Saturday, 26 June 2021 at 02:19:18 UTC, someone wrote:
What I like most of it is that it scales well for big and
complex apps while being really flexible ... and neat :)
If you pass each file to the compiler like in your script then
every naming convention becomes irrelevant because the co
On Saturday, 26 June 2021 at 04:24:05 UTC, frame wrote:
If you pass each file to the compiler like in your script then
every naming convention becomes irrelevant because the compiler
does not need to do a file system lookup anyway and a module
"foo_bar" could be also in the file xyz.d.
You p