|
Instancing Data StructuresAny data type type_name - basic or defined by struct - serves as a type converter to that data type. A nil argument is converted to a scalar zero of the specified type. Keywords matching the member names can be used to assign non-zero values to individual members:
The . operator extracts a member of a data structure. The -> operator dereferences a pointer to the data structure before extracting the member. For example: struct Mesh { pointer x, y; long imax, jmax; }
|