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 Scope*

scope

e Expression

expression to check

readonly bool

if access is read-only

printmsg bool

print error message if true

Return Value

Type: bool

true if error

Meta