In the pseudocode guide for my syllabus, an example of a record data type is given as below:
TYPE Student DECLARE Surname : STRING DECLARE FirstName : STRING DECLARE DateOfBirth : DATE DECLARE YearGroup : INTEGER DECLARE FormGroup : CHAR ENDTYPE
However, for enums and pointers it gives the following examples:
TYPE Planet = (Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune) TYPE Pointer = ^<Type name>
There seem to be 2 inconsistencies here: the lack of the opening/closing "tag" structure from the record type, and also the use of equals signs in the enum and pointer examples.
I'n not sure if there is a conceptual difference between these types of types which explains the difference, of if it is due to an oversight on the writers of the guide.
Could someone please clarity this for me and explain the conceptual difference if there is one?