This built-in compiler plug-in of ALib Expressions, performs auto-casts only if two different types are given. In this case, the following casts are performed:
- If one argument is of type Types::String, the other is converted to string. The expression function returned for (optional) decompilation is "String()".
- If one argument is of type Types::Float and the other of type Types::Integer, the integral value is casted to floating point. The expression function returned for (optional) decompilation is "Float()".
- If one argument is of type Types::Float and the other of type Types::Boolean, the boolean value is casted to floating point. The expression function returned for (optional) decompilation is "Float()".
- If one argument is of type Types::Integer and the other of type Types::Boolean, the boolean value is casted to integer. The expression function returned for (optional) decompilation is "Integer()".
- If one argument is of type Types::Boolean, the other is converted to boolean using an internal callback function that simply invokes box-function FIsTrue. The expression function returned for (optional) decompilation is "Boolean()".
Definition at line 42 of file autocast.hpp.