Is there typeof in BlitzMax?

BlitzMax Forums/BlitzMax Beginners Area/Is there typeof in BlitzMax?

Jolinah(Posted 2005) [#1]
solve: If Type(Var) then ....


Perturbatio(Posted 2005) [#2]
What does typeof do?


Mark Tiffany(Posted 2005) [#3]
You can do an explicit cast, and if it *doesn't* return a null, then that's your man, e.g.:
If TGadget(thisthingwhatisit)<>Null Then DoStuffToAGadget(thisthingwhatisit)



FlameDuck(Posted 2005) [#4]
Remember that like with TypeOf, you might get "false positives" when using polymorpism.


Perturbatio(Posted 2005) [#5]
That what I thought it did, but wanted clarification.


Koriolis(Posted 2005) [#6]
That's not what I understand. Wasn't Sektor333 talking about an operator giving the static type of an expression (like the yet to be standardized C++ 'typeof' operator) ?
Something that doesn't exist in BlitzMax.