47 ::error (
"invalid colon expression");
65 ::error (
"invalid colon expression");
76 error (
"invalid number of output arguments for colon expression");
87 bool result_is_str,
bool dq_str)
const
91 bool base_empty = m_base.
is_empty ();
92 bool limit_empty = m_limit.
is_empty ();
93 bool increment_empty = m_increment.
is_empty ();
95 if (base_empty || limit_empty || increment_empty)
99 retval =
Range (m_base(0), m_limit(0), m_increment(0));
102 retval = retval.
convert_to_str (
false,
true, dq_str ?
'"' :
'\'');
120 tmp1(1) = ov_increment;
133 ::error (
"can not find overloaded colon function");
143 eval_error (
"invalid base value in colon expression");
149 eval_error (
"invalid limit value in colon expression");
155 eval_error (
"invalid increment value in colon expression");
157 retval =
make_range (m_base, m_limit, m_increment,
158 result_is_str, dq_str);
177 eval_error (
"invalid base value in colon expression");
183 eval_error (
"invalid limit value in colon expression");
193 eval_error (
"invalid increment value in colon expression");
197 tmp1(1) = ov_increment;
219 ::error (
"can not find overloaded colon function");
231 eval_error (
"invalid increment value in colon expression");
235 retval =
make_range (ov_base, ov_limit, ov_increment);