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

Module ddmd.dtemplate

Compiler implementation of the D programming language.

Template implementation.

Functions

Name Description
arrayObjectIsError Are any of the Objects an error?
definitelyValueParameter Return true if e could be valid only as a template value parameter. Return false if it might be an alias or tuple. (Note that even in this case, it could still turn out to be a value).
functionResolve Given function arguments, figure out which template function to expand, and return matching result.
getType Try to get arg as a type.
isError Is this Object an error?
isExpression These functions substitute for dynamic_cast. dynamic_cast does not work on earlier versions of gcc.
unSpeculative IsExpression can evaluate the specified type speculatively, and even if it instantiates any symbols, they are normally unnecessary for the final executable. However, if those symbols leak to the actual code, compiler should remark them as non-speculative to generate their code and link to the final executable.

Classes

Name Description
TemplateAliasParameter
TemplateDeclaration
TemplateInstance
TemplateMixin
TemplateParameter
TemplateThisParameter
TemplateTupleParameter
TemplateTypeParameter
TemplateValueParameter

Structs

Name Description
TemplateInstanceBox This struct is needed for TemplateInstance to be the key in an associative array. Fixing https://issues.dlang.org/show_bug.cgi?id=15812 and

Authors

Walter Bright

License

Boost License 1.0

Comments