Number of instances of a type

Blitz3D Forums/Blitz3D Beginners Area/Number of instances of a type

Just a thought....

If types are actually allocated using some kind of reference counting and/or standard library list functions, there might be a way of using thing.Last - thing.First and dividing by the size of the type to calculate the number without having to iterate through the list.

I don't think we have a sizeof() function, but there might be ways of calculating it for a given 'thing' if speed was going to be an issue.

Anyone tried anything like this ??