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

Module ddmd.mtype

Compiler implementation of the D programming language.

Functions

Name Description
MODimplicitConv Return !=0 if modfrom can be implicitly converted to modto
MODmerge Merge mod bits to form common mod.
MODmethodConv Return MATCH.exact or MATCH.constant if a method of type '() modfrom' can call a method of type '() modto'.
MODtoBuffer Store modifier name into buf.
MODtoChars Return modifier name.
ModToStc Convert MODxxxx to STCxxx
semanticLength This evaluates exp while setting length to be the number of elements in the tuple t.
stripDefaultArgs Strip all parameter's idenfiers and their default arguments for merging types. If some of parameter types or return type are function pointer, delegate, or the types which contains either, then strip also from them.

Classes

Name Description
Parameter
Type
TypeAArray
TypeArray
TypeBasic
TypeClass
TypeDArray Dynamic array, no dimension
TypeDelegate
TypeEnum
TypeError
TypeFunction
TypeIdentifier
TypeInstance Similar to TypeIdentifier, but with a TemplateInstance as the root
TypeNext
TypeNull
TypePointer
TypeQualified
TypeReference
TypeReturn
TypeSArray Static array, one with a fixed dimension
TypeSlice This is so we can slice a TypeTuple
TypeStruct
TypeTuple
TypeTypeof
TypeVector The basetype must be one of: byte[16],ubyte[16],short[8],ushort[8],int[4],uint[4],long[2],ulong[2],float[4],double[2] For AVX: byte[32],ubyte[32],short[16],ushort[16],int[8],uint[8],long[4],ulong[4],float[8],double[4]

Authors

Walter Bright

License

Boost License 1.0

Comments