Re: New package behaviour in 2.067

2015-03-10 Thread Dicebot via Digitalmars-d-learn
https://issues.dlang.org/show_bug.cgi?id=14275

Re: New package behaviour in 2.067

2015-03-10 Thread Dicebot via Digitalmars-d-learn
Looks like bug, investigating.

Re: New package behaviour in 2.067

2015-03-10 Thread ketmar via Digitalmars-d-learn
On Tue, 10 Mar 2015 23:17:01 +, Namespace wrote: > Is this intended? i doubt so. `struct Foo` is definitely `public`, so there shouldn't be any problems with access rights. signature.asc Description: PGP signature

New package behaviour in 2.067

2015-03-10 Thread Namespace via Digitalmars-d-learn
I'm unsure, but I think this code should work: module A.B.Foo; import core.stdc.stdio : printf; struct Foo { package(A) void foo() { printf("Hallo\n"); } } package(A) void bar() { printf("Hallo\n"); } and module A.C.Bar; import A.B.Foo; void main() { Foo f