is there a way to: import something = app-xyz-classes-something; ?
frame
frame86 at live.com
Mon Jun 21 08:55:14 UTC 2021
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 of a module is an invalid module name (e.g.
> foo-bar.d), you may use a module declaration to set a valid
> module name:
```d
module foo_bar;
```
Tested on Windows/dmd - does NOT work :(
More information about the Digitalmars-d-learn
mailing list