Len operator accepts illegal parameters.

BlitzMax Forums/BlitzMax Programming/Len operator accepts illegal parameters.

Why?

If I ask for the lenght of a book, which is madeup of type word, I word expect the answer to be really Big.

If I ask for the length of a book in type book, the anwser should be one.

When operating on non-object variables SizeOf returns the number of bytes which are needed for the variable. However when operating on object variables SizeOf returns the number of bytes which are needed by the object
That should be AND, cos its doing the same. That is sizeof is returning the number of bytes in both situations.

And Len is also doing the same in both situations.

On standard Types/objects it returns the number of types (always one) and on user defined Tpyes/objects it should also return the number types, also one