Quote: "#constant Tank as tankType[ALLTanks]
#constant target as targetType[ALLTanks]"
Yes!
#constant replaces the second token with the rest of the line.
So after compilation, all occurrences of the word 'Tank' are replaced with ' as tankType[ALLTanks]' and all occurrences of the word 'target' are replaced with ' as targetType[ALLTanks]'
You shouldn't use a constant to set a global array value anyway! You should use the keyword global, for example:
global Tank as tankType[ALLTanks]
global target as targetType[ALLTanks]