Difference between revisions of "Struct Reference"
m
Fixed a typo: changed "is other languages" to "in other languages".
imported>Qazaaq (Changed the structure array example) |
imported>Homecom m (Fixed a typo: changed "is other languages" to "in other languages".) |
||
Line 1: | Line 1: | ||
Structs are basically mini-objects that can hold several variables of different types, but cannot contain functions or events, and cannot extend any objects or other structs. However, like objects (and unlike structs | Structs are basically mini-objects that can hold several variables of different types, but cannot contain functions or events, and cannot extend any objects or other structs. However, like objects (and unlike structs in other languages) they are passed and held onto by reference, not by value. Structs may be used in arrays. | ||
== Defining a Struct == | == Defining a Struct == |