digitalmars.D - packages
- Andrew Fedoniouk (20/20) Mar 07 2005 I have to modules
- Jarrett Billingsley (4/5) Mar 08 2005 The docs say that the package keyword makes symbols visible only within
I have to modules
module zzz.ui.window;
class Window
{
static package uint A;
}
---------------------------
module zzz.ui.native.win32window;
....
Window.A = 23; // <----- here I am getting
.\zzz\ui\native\win32window.d(33): class zzz.ui.window.Window member A is
not accessible
How this package accessor works? What I need to change to
make
zzz.ui.window.Window.A
visible from
zzz.ui.native.win32window
module?
Thanks in advance,
Andrew.
Mar 07 2005
How this package accessor works?The docs say that the package keyword makes symbols visible only within modules on the same "level." so something declared package in a.b.c would be visible in a.b.d, but not a.b.c.f or a.r. Personally I've never got the keyword to work in any capability.
Mar 08 2005








"Jarrett Billingsley" <kb3ctd2 yahoo.com>