Module visibility feature?
Tommi
tommitissari at hotmail.com
Thu Jul 18 15:22:12 PDT 2013
On Thursday, 18 July 2013 at 10:55:39 UTC, Dicebot wrote:
> On Wednesday, 17 July 2013 at 11:33:39 UTC, Jeremy DeHaan wrote:
>> So I was reading this:
>> http://wiki.dlang.org/Access_specifiers_and_visibility
>> ...
>
> How will it be any different from
>
> module foo.barstuff;
>
> package:
>
> // declarations
All modules can import foo.barstuff, but only other modules in
foo could import a module declared as 'protected':
protected module foo.detail;
// declarations
This makes a clearer distinction between implementation detail
modules vs normal modules.
More information about the Digitalmars-d
mailing list