Importing struct
Mike Parker
aldacron at gmail.com
Mon Aug 13 14:16:47 UTC 2018
On Monday, 13 August 2018 at 13:09:24 UTC, Andrey wrote:
> On Monday, 13 August 2018 at 13:05:28 UTC, evilrat wrote:
>> however the best option is simply avoid naming anything with
>> same name as module.
>
> Hmm, I thought that name of class should match name of file...
>
> And how to name a file that contains only one class/struct?
> Like in my case. What usually true D coders do?)
The convention is to use lowercase for the module name:
module myclass;
struct MyClass {}
More information about the Digitalmars-d-learn
mailing list