[Issue 313] New: Fully qualified names bypass private imports

Thomas Kuehne thomas-dloop at kuehne.cn
Wed Sep 13 15:35:25 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-08-27:
> http://d.puremagic.com/issues/show_bug.cgi?id=313

> In file a.d:
> --
> // explicit private no longer needed but added for clarity
> private import std.stdio;
> --
> In file b.d:
> --
> import a;
>
> void main() {
>         // compiler correctly reports "undefined identifier writefln"
>         writefln("foo");
>         // works fine!
>         std.stdio.writefln("foo");
> }

Added to DStress as
( http://dstress.kuehne.cn/addon/import_16_A.d )
( http://dstress.kuehne.cn/addon/import_16_B.d )
http://dstress.kuehne.cn/nocompile/i/import_16_C.d
http://dstress.kuehne.cn/nocompile/i/import_16_D.d
http://dstress.kuehne.cn/nocompile/i/import_16_E.d
http://dstress.kuehne.cn/nocompile/i/import_16_F.d
http://dstress.kuehne.cn/nocompile/i/import_16_G.d
http://dstress.kuehne.cn/nocompile/i/import_16_H.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFCI/kLK5blCcjpWoRAr2vAJ9kMpOBRbvfc+shCaY5sUmJ2A0mHgCgiqwL
gXiXz3j5CfhZNxSD/od/FP4=
=t6HB
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list