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.toAutoQualChars

For printing two types with qualification when necessary.

const(char*[2]) toAutoQualChars (
  Type t1,
  Type t2
);

Parameters

NameDescription
t1 The first type to receive the type name for
t2 The second type to receive the type name for

Returns

The fully-qualified names of both types if the two type names are not the same, or the unqualified names of both types if the two type names are the same.

Authors

Walter Bright

License

Boost License 1.0