Why you should name types?

Blitz3D Forums/Blitz3D Beginners Area/Why you should name types?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

(BitzPlus)
What's the point of giving a name to types?
First, I thought I could use them to build a structure and then create differetn instances... But this is not true.
The For... Each loop will check all instances regardless of the name... Is it normal?

Example:

Type SPRITE 
	Field LOCX 
	Field LOCY 
	Field CURRENTFRAME	
	Field MAXFRAME	
End Type 

For temp = 1 To 20

	cats.sprite = New sprite 
	cats\LOCX = Rand(100)
	cats\LOCY = Rand(200)
        cats\CURRENTFRAME= Rand(1,8)-1
	cats\MAXFRAME= 8
		
Next 

For temp = 1 To 20

	zombies.sprite = New sprite 
	zombies\LOCX = Rand(100)
	zombies\LOCY = Rand(200)
        zombies\CURRENTFRAME= Rand(1,18)-1
	zombies\MAXFRAME= 18
		
Next 

For zombies.sprite= Each sprite

        Print zombies\LOCY

Next



This will print both cats and zombies...

And if you try a new name:


For zombies.sprite= Each sprite

        Print zombies\LOCY

Next



It will print all sprite collection again!

I have already found workarounds for this, but don't you think that it is not logic? Each instance of a type should be a different collection.