Re: Package visibility strange behaviour

2017-02-27 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, February 27, 2017 14:07:21 Oleg B via Digitalmars-d-learn wrote: > Hello. Is this behavior normal, or it's a bug? And if it's normal > why it's normal? I want to use function with `package` visibility > in same package where it's defined, but I don't. > > ```d > module package_visible;

Package visibility strange behaviour

2017-02-27 Thread Oleg B via Digitalmars-d-learn
Hello. Is this behavior normal, or it's a bug? And if it's normal why it's normal? I want to use function with `package` visibility in same package where it's defined, but I don't. ```d module package_visible; package void foo() { } void main() { foo(); } ``` ``` % rdmd package_visible.d