Changes

Jump to navigation Jump to search
429 bytes added ,  21:48, March 24, 2021
Expanded description of records
Line 21: Line 21:     
==Structures==
 
==Structures==
−
Structures, or records, are collections of multiple named data types.
+
Structures, or records, are collections of multiple named data types. Some modern languages do not support structures, per se.  Instead they use objects, which can be considered a superset of the structure concept.  The following is an example of a structure implemented in [[Pascal (programming language)|Pascal]].
 +
 
 +
<pre>
 +
type tColor = record
 +
                  Red : byte ;
 +
                  Green : byte ;
 +
                  Blue : byte ;
 +
                  Alpha : byte
 +
              end ;
 +
</pre>
    
==Collections==
 
==Collections==
SkipCaptcha
292

edits

Navigation menu