[Issue 23942] deprecated public import

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 29 16:12:45 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23942

Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P5

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
Workaround is to list all of the imported module's symbols in the public
import:

deprecated public import pub : someSymbol;

As a bonus that locks the publicly imported symbol list, so new additions to
pub won't be usable via the public import, even to users of -d.

--


More information about the Digitalmars-d-bugs mailing list