View mode: basic / threaded / horizontal-split · Log in · Help
February 02, 2010
Module-level private not honored?
Do I understand module level access rights correctly, or is there a dmd bug?

Instead of coming up with an example, I will use a Phobos class: 
std.demangle.MangleException is private in its module; yet I can use it 
in my program:

import std.demangle;

void main()
{
    auto me = new MangleException;
}

Ali
February 03, 2010
Re: Module-level private not honored?
Ali Çehreli wrote:
> Do I understand module level access rights correctly, or is there a dmd 
> bug?
> 
> Instead of coming up with an example, I will use a Phobos class: 
> std.demangle.MangleException is private in its module; yet I can use it 
> in my program:
> 
> import std.demangle;
> 
> void main()
> {
>     auto me = new MangleException;
> }
> 
> Ali


It's a known bug:

http://d.puremagic.com/issues/show_bug.cgi?id=2830

-Lars
Top | Discussion index | About this forum | D home