checkSharedAccess

If expression is shared, check that we can access it. Give error message if not.

bool
checkSharedAccess
(,,
bool returnRef = false
)

Parameters

e Expression

expression to check

sc Scope*

context

returnRef bool

Whether this expression is for a return statement off a ref function, in which case a single level of dereference is allowed (e.g. shared(int)*).

Return Value

Type: bool

true on error

Meta