View source code
Display the source code in dmd/escape.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

dmd.escape.isReferenceToMutable - multiple declarations

Function isReferenceToMutable

Is type a reference to a mutable value?

bool isReferenceToMutable (
  Type t
);

This is used to determine if an argument that does not have a corresponding Parameter, i.e. a variadic argument, is a pointer to mutable data.

Parameters

NameDescription
t type of the argument

Returns

true if it's a pointer (or reference) to mutable data

Function isReferenceToMutable

Is parameter a reference to a mutable value?

bool isReferenceToMutable (
  Parameter p,
  Type t
);

This is used if an argument has a corresponding Parameter. The argument type is necessary if the Parameter is inout.

Parameters

NameDescription
p Parameter to check
t type of corresponding argument

Returns

true if it's a pointer (or reference) to mutable data

Authors

Walter Bright

License

Boost License 1.0