"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dmd/access.d" between
dmd-2.094.1.tar.gz and dmd-2.094.2.tar.gz

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

access.d  (dmd-2.094.1):access.d  (dmd-2.094.2)
skipping to change at line 165 skipping to change at line 165
return true; return true;
} }
} }
return sc._module == s.getAccessModule(); return sc._module == s.getAccessModule();
} }
/**************************************** /****************************************
* Check access to d for expression e.d * Check access to d for expression e.d
* Returns true if the declaration is not accessible. * Returns true if the declaration is not accessible.
*/ */
bool checkAccess(Loc loc, Scope* sc, Expression e, Declaration d) bool checkAccess(Loc loc, Scope* sc, Expression e, Dsymbol d)
{ {
if (sc.flags & SCOPE.noaccesscheck) if (sc.flags & SCOPE.noaccesscheck)
return false; return false;
static if (LOG) static if (LOG)
{ {
if (e) if (e)
{ {
printf("checkAccess(%s . %s)\n", e.toChars(), d.toChars()); printf("checkAccess(%s . %s)\n", e.toChars(), d.toChars());
printf("\te.type = %s\n", e.type.toChars()); printf("\te.type = %s\n", e.type.toChars());
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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