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 a local clone.


FuncDeclaration search_toString(StructDeclaration sd);
Search toString member function for TypeInfo_Struct. string toString();
void semanticTypeInfo(Scope* sc, Type t);
Request additonal semantic analysis for TypeInfo generation.
class StructDeclaration: ddmd.aggregate.AggregateDeclaration;
final bool fit(Loc loc, Scope* sc, Expressions* elements, Type stype);
Fit elements[] to the corresponding type of field[].

Input: loc sc elements The explicit arguments that given to construct object. stype The constructed object type. Returns false if any errors occur. Otherwise, returns true and elements[] are rewritten for the output.

final bool isPOD();
Return true if struct is POD (Plain Old Data). This is defined as: not nested no postblits, destructors, or assignment operators no 'ref' fields or fields that are themselves non-POD The idea being these are compatible with C structs.
class UnionDeclaration: ddmd.dstruct.StructDeclaration;