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

build a shim function around the compound dtor that translates a C++ destructor to a destructor with extern(D) calling convention

DtorDeclaration buildExternDDtor (
  AggregateDeclaration ad,
  dmd.dscope.Scope* sc
);

Parameters

NameDescription
the aggregate that contains the destructor to wrap
sc the scope in which to analyze the new function

Returns

the shim destructor, semantically analyzed and added to the class as a member

Authors

Walter Bright

License

Boost License 1.0