www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - private and public precedence rules

Here are some examples which give food for thought:

import <somemodule>

gives somemodule public access

private {
	import <somemodule>
}

gives somemodule private access

public {
	import <somemodule>
}

leaves somemodule with public access

private {
	public {
		import <somemodule>
	}
}

What does this do, does it make somemodule private or not?

public {
	private {
		import <somemodule>
	}
}

And this, stays somemodule private?

Regards,
Sjoerd
Oct 18 2004