Dividing D Module between multiple files
Daniel Kozák via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Feb 17 23:33:57 PST 2015
On Wed, 18 Feb 2015 07:23:24 +0000
Muahmmad Adel via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> wrote:
> I have searched online and I found no way for dividing D Module
> between multiple files.
>
> While other languages move to making classes distributed on
> multiple files (like C#'s partial classes), D is moving in the
> opposite direction, and makes a bigger code unit in one file.
>
> Biding every module to single file means large files, with high
> probability of merge conflicts (as more developers are working on
> the same file) makes separating developer's code from IDE
> generated code more difficult.
>
> I need to understand the rationale behind binding the module to
> the file. Although Alexandrescu explained rationale behind
> different language design decisions in his book, he didn't
> explain this one.
>
> Thanks
>
You are not force to do so I do not see any trouble here.
For eg. I have lots of file where I have only one class (similar to
java concept).
More information about the Digitalmars-d-learn
mailing list