Mercurial > octave-antonio
diff src/ov-cell.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 | 95663a3a2682 |
line wrap: on
line diff
--- a/src/ov-cell.cc Thu May 16 16:34:20 2002 +0000 +++ b/src/ov-cell.cc Thu May 16 18:11:50 2002 +0000 @@ -165,40 +165,43 @@ } } - switch (type[0]) + if (! error_state) { - case '(': - { - octave_value_list i = idx.front (); + switch (type[0]) + { + case '(': + { + octave_value_list i = idx.front (); - if (t_rhs.is_cell ()) - octave_base_matrix<Cell>::assign (i, t_rhs.cell_value ()); - else - octave_base_matrix<Cell>::assign (i, Cell (t_rhs)); + if (t_rhs.is_cell ()) + octave_base_matrix<Cell>::assign (i, t_rhs.cell_value ()); + else + octave_base_matrix<Cell>::assign (i, Cell (t_rhs)); - retval = octave_value (this, count + 1); - } - break; + retval = octave_value (this, count + 1); + } + break; - case '{': - { - octave_value_list i = idx.front (); + case '{': + { + octave_value_list i = idx.front (); - octave_base_matrix<Cell>::assign (i, Cell (t_rhs)); + octave_base_matrix<Cell>::assign (i, Cell (t_rhs)); - retval = octave_value (this, count + 1); - } - break; + retval = octave_value (this, count + 1); + } + break; - case '.': - { - std::string nm = type_name (); - error ("%s cannot be indexed with %c", nm.c_str (), type[0]); - } - break; + 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;