Error when using `import`.
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sat Feb 24 10:57:24 UTC 2024
On 24/02/2024 11:51 PM, Liam McGillivray wrote:
> On Saturday, 24 February 2024 at 10:34:25 UTC, Richard (Rikki) Andrew
> Cattermole wrote:
>> A few things.
>>
>> Module names should be lower case.
>
> I capitalised the first letter in the class names so that I can make
> instances of them in lowercase. Should I rename the classes, modules,
> and filenames to all be lowercase?
>
> It appears to be solved now after adding module declarations to the
> beginning of each file in all-lowercase. This is despite the classes and
> the class names still being capitalized. I'm still getting errors, but
> they appear to be unrelated.
>
> Thank you.
As far as naming goes, the recommendations from the D style guidelines
are quite good.
https://dlang.org/dstyle.html
However I suspect that you are treating module names as symbols, and
while this is the case it can be done, you should avoid doing that until
you understand the basics.
https://ddili.org/ders/d.en/modules.html
More information about the Digitalmars-d-learn
mailing list