Game Development Community

Enforce Type and Case sensitivity?

by Doug Wetzel · in Torque Game Builder · 06/27/2006 (2:29 am) · 1 replies

Hello all,

I realize that TorqueScript is natively type-insensitive and case-insensitive with respect to variables. I'm wondering if there is a way to change that and require both type and case sensitive variable handling? I can't seem to locate any information as to whether this is possible or not. It doesn't appear to be so far as I can tell ...

Thanks!

About the author

Recent Threads


#1
06/27/2006 (6:51 pm)
For variables and object data-fields, take a look in compiledEval.cc at the methods:

ExprEvalState::setCurVarName(StringTableEntry name)
inline void ExprEvalState::setCurVarNameCreate(StringTableEntry name)

These seem to handle the auto-creation/value-lookup of variables.

Also, look in simBase.cc at the method:

const char *SimObject::getDataField(StringTableEntry slotName, const char *array)

This seems to handle the look up of object datafields.

For functions and methods, Torque spits out warning messages for functions/methods that are not found. Do a global search of the source code for the text used in the error messages; That should give you a starting point. :)

HTH