Feature #12364

Type checking

Added by T_D about 5 years ago. Updated about 5 years ago.

Status:Feedback Start date:07/27/2010
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Affected Version:

Description

stuff like:
A = "blah" atan2 5
is not recognized. Is type checking planned?

History

Updated by sbsmac about 5 years ago

By 'not recognised' you mean that it's not reported as an error? Yes, type-checking is planned for the next few days - just need to sort out some of the low-level token recognition then propapagate types up through the expression tree :-)

Updated by sbsmac about 5 years ago

  • Status changed from New to Feedback

Type-checking is now quite strong - all consts and operators are correctly type-checked. The remaining area of improvement is to trace variable types so that, for example, the following would be flagged..

_x="a string";

... some time later

player setdir _x;

At the moment all variables are typed as 'any' to avoid spurious warnings.

Also available in: Atom PDF