I don't think that package works

Jarrett Billingsley kb3ctd2 at yahoo.com
Wed Mar 22 21:10:18 PST 2006


Please tell me what I'm doing wrong here.

-----------------
/dtest/dtest.d
-----------------

module dtest;

import modules.mymod;

void main()
{
 f();
 g();
 h();
}

-----------------
/dtest/modules/mymod.d
-----------------

module modules.mymod;

public void f()
{

}

private void g()
{

}

package void h()
{

}


DMD correctly flags my trying to call g() as an error.  But it doesn't flag 
h().  Shouldn't only other files in /dtest/modules/ be able to access h()? 





More information about the Digitalmars-d mailing list