With Struct's we'd also have the ability to change data types:
Structs would also allow a Struct to be overlaid onto a Bank to allow access to the data directly. In fact, a bank is already the basis of this new data type.
Local oShort:TShort = New TShort Local oByte:TWord oShort.value = 257 oByte = TWords( obj ) Print "SHORT=" + oShort.value Print "HI=" + oByte.hi Print "LO=" + oByte.lo Type TSHORT Field value:Short End Type Type TWORD Field hi:Byte Field lo:Byte End Type
Structs would also allow a Struct to be overlaid onto a Bank to allow access to the data directly. In fact, a bank is already the basis of this new data type.