Fix #2529: explicit protection package #3651

Jacob Carlborg via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Aug 23 02:24:04 PDT 2014


On 2014-08-23 11:12, Kagamin wrote:

> If some thing is used in entire foo.bar package, then it's foo.bar's
> internal, not foo.bar.subpkg's internal. I think, it's natural when the
> wider the thing is used, the higher in hierarchy it sits.

A symbol declared "package" can only be accessed within its own package. 
It cannot be accessed from sub packages or super packages.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list