Proposed improvements to the separate compilation model
eles
eles at eles.com
Tue Mar 5 04:01:52 PST 2013
On Monday, 4 March 2013 at 06:18:35 UTC, Manu wrote:
> +1_000_000_000
>
> Yes please!
> It's near impossible to get a brief overview of a class at a
> glance in D!
Exactly for this reason, what about make this way at least the
recommended way, if not the single one?
What is to lose? As about what to win, basically each .d file
will carry its .di file (class definition) inside it, and the
latter can be easily extracted (both visually and automatically).
Just one note: please allow that the private variables of a class
(those that are not exposed outside the file) be declarable
outside the main definition of the class, that is with the .
syntax. This will completely make declaration and implementation
independent, to the point that the class definition is an
interface and nothing else.
More information about the Digitalmars-d
mailing list