Pascal (programming language): Difference between revisions

Content deleted Content added
Record types: Simplified Pascal record cases. The previous discussion was a trope about computer science that was unecessary to the subject at hand, to wit: The Pascal language.
Line 236:
 
An example of a Pascal record type:
 
:<syntaxhighlight lang="pascal">
type
car = record
length: integer;
width: integer
end;
</syntaxhighlight>
 
An example of a variant record type:
 
:<syntaxhighlight lang="pascal">