Re: Why modules is so strongly limited?

2016-07-15 Thread imbaFireFenix via Digitalmars-d
On Thursday, 14 July 2016 at 09:36:17 UTC, Jonathan M Davis wrote: Java does basically the same thing (though they take it even farther, since they only allow one, public class per module), and IIRC, a number of other languages do as well (haskell does from what I recall, and python might; I do

Re: Why modules is so strongly limited?

2016-07-13 Thread imbaFireFenix via Digitalmars-d
but few dozen lines will allowed to get rid of naming hell I mean in compiler source

Re: Why modules is so strongly limited?

2016-07-13 Thread imbaFireFenix via Digitalmars-d
In this cases, the usual way is to make a package, this way: == in file MP/M1.d == module MP.M1; // some pieces of the work == in file MP/M2.d == module MP.M2; // other pieces of the work == in file MP/package.d == module MP; public import MP.M1; public import MP.M2; // public import everyth

Why modules is so strongly limited?

2016-07-13 Thread imbaFireFenix via Digitalmars-d
Hello my friends! I'm new user of D language and leaarning how it works. I'm know C++ and trying Rust, GO and some else and now - D is the best language for me But I'm confused... Many coders was great work and interesting features, but modules is so strongly limited!!! https://dlang.org/spe