On Monday, 13 August 2018 at 14:30:36 UTC, Timoses wrote:
On Monday, 13 August 2018 at 14:16:47 UTC, Mike Parker wrote:
On Monday, 13 August 2018 at 13:09:24 UTC, Andrey wrote:
[...]
The convention is to use lowercase for the module name:
module myclass;
struct MyClass {}
Using lowercase
On Monday, 13 August 2018 at 14:16:47 UTC, Mike Parker wrote:
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
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 conta
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 conta
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
On Monday, 13 August 2018 at 12:44:44 UTC, evilrat wrote:
Another option to save up on typing is renamed imports
import mc = MyClass;
mc.MyClass.parse(...)
this also should work
import mc = MyClass;
alias MyClass = mc.MyClass; // make synonym
// now it is just MyClass
MyClas
On Monday, 13 August 2018 at 12:34:25 UTC, Andrey wrote:
Hello,
This is my test project:
source/app.d
source/MyClass.d
app.d:
import std.stdio;
import MyClass;
void main(string[] args)
{
MyClass.MyClass.parse(args); // I want just
MyClass.p
Hello,
This is my test project:
source/app.d
source/MyClass.d
app.d:
import std.stdio;
import MyClass;
void main(string[] args)
{
MyClass.MyClass.parse(args); // I want just
MyClass.parse(args);
}
---