[Issue 8716] `package` restricts members usage in same module if there is no package name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 23 22:56:32 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8716
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg at gmx.com
--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-09-23 22:57:26 PDT ---
I'm not sure that this is a bug, though the behavior is obviously surpising.
Technically speaking, your module isn't _in_ a package, so naturally it won't
have access to anything with package level access. For a module to be in a
package, it needs to be explicitly put in one. e.g.
module x.y;
Without that first x., it's a module without a package, because there is no
top-level package which holds modules which aren't explicitly put in a package.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list