Code spliting in module and packages

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 20 17:56:25 PDT 2014


On 7/21/2014 7:13 AM, Matthieu wrote:
> Hi!
>
> I can't find any good tutorial about how to split my source code
> in modules and packages. I don't want to use a Java splitting
> style (one class per file) or something like that, I want to use
> the D way, but it's so hard to find it! Can someone explain to me
> how to do it well, please?
>

I don't think there is a "D way." It's a matter of personal preference. 
I don't like to see huge modules, so I prefer to keep them small. But 
what is a reasonable level of separation for me may not be the same for 
you. Just go with what feels natural to you.

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



More information about the Digitalmars-d-learn mailing list