"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dmd/dmodule.d" between
dmd-2.097.0.tar.gz and dmd-2.097.1.tar.gz

About: DMD (Digital Mars D) is the D reference compiler. D is an object-oriented, imperative, multi-paradigm system programming language.

dmodule.d  (dmd-2.097.0):dmodule.d  (dmd-2.097.1)
skipping to change at line 1070 skipping to change at line 1070
// https://issues.dlang.org/show_bug.cgi?id=21661 // https://issues.dlang.org/show_bug.cgi?id=21661
// Code taken from Import.addPackageAccess() // Code taken from Import.addPackageAccess()
if (md.packages.length > 0) if (md.packages.length > 0)
{ {
// module a.b.c.d; // module a.b.c.d;
auto p = ppack; // a auto p = ppack; // a
addAccessiblePackage(p, Visibility(Visibility.Kind.private_)); addAccessiblePackage(p, Visibility(Visibility.Kind.private_));
foreach (id; md.packages[1 .. $]) // [b, c] foreach (id; md.packages[1 .. $]) // [b, c]
{ {
p = cast(Package) p.symtab.lookup(id); p = cast(Package) p.symtab.lookup(id);
if (p is null)
break;
addAccessiblePackage(p, Visibility(Visibility.Kind.private_) ); addAccessiblePackage(p, Visibility(Visibility.Kind.private_) );
} }
} }
assert(dst); assert(dst);
Module m = ppack ? ppack.isModule() : null; Module m = ppack ? ppack.isModule() : null;
if (m && (strcmp(m.srcfile.name(), package_d) != 0 && if (m && (strcmp(m.srcfile.name(), package_d) != 0 &&
strcmp(m.srcfile.name(), package_di) != 0)) strcmp(m.srcfile.name(), package_di) != 0))
{ {
.error(md.loc, "package name '%s' conflicts with usage as a modu le name in file %s", ppack.toPrettyChars(), m.srcfile.toChars()); .error(md.loc, "package name '%s' conflicts with usage as a modu le name in file %s", ppack.toPrettyChars(), m.srcfile.toChars());
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)