Struct

To store information about a struct

Constructors

this
this(string structString)

constructor, reads from string (uses fromString)

this
this(string name, string[] members, DataType[] dTypes)

constructor

Postblit

this(this)
this(this)

postblit

Members

Functions

fromString
string fromString(string str)

Reads this Struct from a string (reverse of toString)

toString
string toString()

Properties

membersDataType
DataType[] membersDataType [@property getter]
DataType[] membersDataType [@property setter]

data types of members of this struct

membersName
string[] membersName [@property getter]
string[] membersName [@property setter]

name of members of this struct

Variables

name
string name;

the name of this struct

Examples

st{
	Struct str = Struct("potatoStruct",["a","b","c"],[DataType("int"),DataType("@double[]"),DataType("@char[]")]);
	assert(Struct(str.toString) == str

Meta