Difference between revisions of "Introduction to Pluggy Arrays"
m
→Data Types: typo
imported>Speedo (→Dynamic Arrays: Changed example) |
imported>Speedo m (→Data Types: typo) |
||
Line 43: | Line 43: | ||
===Data Types=== | ===Data Types=== | ||
Arrays within Pluggy are not restricted to any | Arrays within Pluggy are not restricted to any one variable type; they may contain any mix of [[Long Integer|Integers]], [[Floating Point|Floats]], or [[Reference Variables|Refs]], in addition to indexes which are empty. [[GetTypeInArray]] can be used to determine which type of variable is stored in a particular index. | ||
Such flexibility allows you to store a large variety of information within a single array, rather than needing multiple arrays; you need only keep track of which index stores what information. For example, if you wanted to store information about an item, in this case a gold coin, you might want to use an array that contained: | Such flexibility allows you to store a large variety of information within a single array, rather than needing multiple arrays; you need only keep track of which index stores what information. For example, if you wanted to store information about an item, in this case a gold coin, you might want to use an array that contained: |