March 07, 2005 packages | ||||
|---|---|---|---|---|
  | ||||
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.
 | ||||
March 08, 2005 Re: packages | ||||
|---|---|---|---|---|
  | ||||
Posted in reply to Andrew Fedoniouk  | > 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.
 | |||
Copyright © 1999-2021 by the D Language Foundation
 
Permalink
Reply