Been playing around with structs a lot the last few days, and one of the things that I have noticed is extremely lacking with them is ancillary functionality. They have been truncated down to data containers, which is fine, except that they do not contain any of the usability generic functions that you would expect. Here are some example functions that I would love to see implemented to work with structs:
- Get Struct Length - Return the
number of elements in Struct - For
Each member In Struct - Loop through
the elements in a Struct - Get Data
Type From Member - Returns the data
type of the member from the given
element in the struct. - Get Struct
Member - Takes an int/byte and
returns the Member at that position.
Basically, any functionality that could be applied to generic data containers that we could get to work with structs.