checkUnsafeAccess

Check for unsafe access in @safe code: 1. read overlapped pointers 2. write misaligned pointers 3. write overlapped storage classes Print error if unsafe.

bool
checkUnsafeAccess

Parameters

sc
Type: Scope*

scope

e

expression to check

readonly
Type: bool

if access is read-only

printmsg
Type: bool

print error message if true

Return Value

Type: bool

true if error

Meta