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 static Box String, the other is converted to string. The expression function returned for (optional) de-compilation is "String()".
- If one argument is of type static Box Float and the other of type static Box Integer, the integral value is cast to floating point. The expression function returned for (optional) de-compilation is "Float()".
- If one argument is of type static Box Float and the other of type static Box Boolean, the boolean value is cast to floating point. The expression function returned for (optional) de-compilation is "Float()".
- If one argument is of type static Box Integer and the other of type static Box Boolean, the boolean value is cast to integer. The expression function returned for (optional) de-compilation is "Integer()".
- If one argument is of type static Box Boolean, the other is converted to boolean using an internal callback function that simply invokes box-function FIsTrue. The expression function returned for (optional) de-compilation is "Boolean()".
Definition at line 34 of file autocast.inl.