Is there typeof in BlitzMax?
BlitzMax Forums/BlitzMax Beginners Area/Is there typeof in BlitzMax?| 
 | ||
| solve: If Type(Var) then .... | 
| 
 | ||
| What does typeof do? | 
| 
 | ||
| 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) | 
| 
 | ||
| Remember that like with TypeOf, you might get "false positives" when using polymorpism. | 
| 
 | ||
| That what I thought it did, but wanted clarification. | 
| 
 | ||
| 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. |