Mercurial > hg > octave-lyh
diff src/ov-list.cc @ 3940:1b58576bdaa6
[project @ 2002-05-16 18:11:50 by jwe]
author | jwe |
---|---|
date | Thu, 16 May 2002 18:11:50 +0000 |
parents | f9ea3dcf58ee |
children | b79da8779a0e |
line wrap: on
line diff
--- a/src/ov-list.cc +++ b/src/ov-list.cc @@ -160,28 +160,31 @@ } } - switch (type[0]) + if (! error_state) { - case '(': - { - octave_value_list i = idx.front (); + switch (type[0]) + { + case '(': + { + octave_value_list i = idx.front (); - assign (i, t_rhs); + assign (i, t_rhs); - retval = octave_value (this, count + 1); - } - break; + retval = octave_value (this, count + 1); + } + break; - case '{': - case '.': - { - std::string nm = type_name (); - error ("%s cannot be indexed with %c", nm.c_str (), type[0]); - } - break; + case '{': + case '.': + { + std::string nm = type_name (); + error ("%s cannot be indexed with %c", nm.c_str (), type[0]); + } + break; - default: - panic_impossible (); + default: + panic_impossible (); + } } return retval;