www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - packages

reply "Andrew Fedoniouk" <news terrainformatica.com> writes:
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
parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
 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