Cycling through alternate types

Blitz3D Forums/Blitz3D Programming/Cycling through alternate 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.

In terms of types, NULL means "doesn't exist" (really, the pointer is pointing to memory address 0)

Example: If I create three instances of a type, I'll end up with something like this:

NULL  <- Before First MyType
  |
Instance1.MyType  <- First MyType
  |
Instance2.MyType
  |
Instance3.MyType  <- Last MyType
  |
NULL  <- After Last MyType


So, you can check to see if you've iterated off the end of the list by checking for NULL.