+ } else if (TYPES_EQUAL(retval,ref_symbol)||
+ TYPES_EQUAL(retval,ref_constant)||
+ TYPES_EQUAL(retval,ref_function)||
+ TYPES_EQUAL(retval,ref_power)||
+ TYPES_EQUAL(retval,ref_numeric)) {
+ if (!basic_type_warning_already_displayed) {
+ cout << endl
+ <<"WARNING: The return value of the last expression you entered was a symbol," << endl
+ << "constant, function, power or numeric, which cannot be safely displayed." << endl
+ << "To force the output, cast it explicitly to type 'ex' or use 'cout'," << endl
+ << "for example (assume 'x' is a symbol):" << endl
+ << PROMPT "ex(x);" << endl
+ << "OutX = x" << endl << endl
+ << PROMPT "cout << x << endl;" << endl
+ << "x" << endl << endl
+ << "This warning will not be shown again." << endl;
+ basic_type_warning_already_displayed=true;
+ }