Why isn't Null a constant in Blitz?

Blitz3D Forums/Blitz3D Programming/Why isn't Null a constant in Blitz?

So, when I have a line like:

If this.myType = Null Then ...


It's not only checking to see if this.myType equals 0, but also checking to see if this.myType matches a handle of any of the deleted types held in the 'inactive objects' list?

Ahhh, that would explain why Null isn't a constant, then. Thanks for the explanation, Floyd. ;)

However, this raises a few other concerns:
- If I have many (thousands) of deleted types, wouldn't the If check above take a relatively long time, since it would have to go through the handles of all the deleted types?
- If memory used by deleted types is never actually freed (until the program ends), it's possible to have memory bloated with thousands of deleted types, pushing the memory requirements of an app up unnecessarily.