Skip to content

Commit 1ce2554

Browse files
mdparkerPetarKirov
authored andcommitted
Specify effects of parameterized package attribute (#2499)
* Specify effects of parameterized package attrib The existing doc gave the impression that any package could be used to parameterize the `package` attribute and was not specific about which packages are granted access.
1 parent 7d054ad commit 1ce2554

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/attribute.dd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,10 @@ attributes in documents predating $(LINK2 http://wiki.dlang.org/DIP22, DIP22).)
371371
or defaults to $(D private) if a module is not nested in a package.
372372
)
373373

374-
$(P $(D package) may have an optional parameter, dot-separated identifier
375-
list which is resolved as the qualified package name. If this optional
376-
parameter is present, the symbol will be visible by this package and
377-
all its descendants.
374+
$(P $(D package) may have an optional parameter in the form of a dot-separated identifier
375+
list which is resolved as the qualified package name. The package must be either the module's
376+
parent package or one of its anscestors. If this optional parameter is present, the symbol
377+
will be visible in the specified package and all of its descendants.
378378
)
379379

380380
$(P $(D protected) only applies inside classes (and templates as they can be mixed in)

0 commit comments

Comments
 (0)