getValue and setValue on properties in a class are a good feature. Could this be expanded to include an index to help with accessing arrays/lists/maps in the class in the same way?
i.e.
getArrayValue(index As Int) As Float
setArrayValue(index As Int, newValue As Float)
The use being:
instance.ArrayValue(3) = 22.7
or
value = instance.ArrayValue(3)
i.e.
getArrayValue(index As Int) As Float
setArrayValue(index As Int, newValue As Float)
The use being:
instance.ArrayValue(3) = 22.7
or
value = instance.ArrayValue(3)
Last edited: