View source code
Display the source code in dmd/mtype.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.

Function dmd.mtype.TypeFunction.parameterEscapes

Examine function signature for parameter p and see if the value of p can 'escape' the scope of the function. This is useful to minimize the needed annotations for the parameters.

extern(C++) bool parameterEscapes (
  Type tthis,
  Parameter p
);

Parameters

NameDescription
tthis type of this parameter, null if none
p parameter to this function

Returns

true if escapes via assignment to global or through a parameter

Authors

Walter Bright

License

Boost License 1.0