dmd.safe
    Checks whether member access or array casting is allowed in @ code.
  safe
Specification: Function Safety
License
Source: safe.d
Documentation: https://dlang.org/phobos/dmd_safe.html
- 
  DeclarationboolcheckUnsafeAccess(Scope*sc, Expressione, boolreadonly, boolprintmsg);Check for unsafe access in @safe code: - read overlapped pointers
- write misaligned pointers
- write overlapped storage classes
 ParametersScope*scscope Expressioneexpression to check boolreadonlyif access is read-only boolprintmsgprint error message if trueReturn Valuetrueif error
- 
  DeclarationboolisSafeCast(Expressione, Typetfrom, Typetto);Determine if it is @safe to cast efromtfromtotto.ParametersExpressioneexpression to be cast Typetfromtype of eTypettotype to cast etoReturn Valuetrueif @safe
- 
  DeclarationboolcheckUnsafeDotExp(Scope*sc, Expressione, Identifierid, intflag);Check for unsafe use of .ptror.funcptrParametersScope*sccontext Expressioneexpression for error messages IdentifieridptrorfuncptrintflagDotExpFlag Return Valuetrueif error