Mercurial > hg > octave-nkf
diff src/ov-base-mat.cc @ 4846:7a3eb3cc292b
[project @ 2004-04-02 20:52:12 by jwe]
author | jwe |
---|---|
date | Fri, 02 Apr 2004 20:52:12 +0000 |
parents | 8f669cc5a901 |
children | 499d2ca46982 |
line wrap: on
line diff
--- a/src/ov-base-mat.cc +++ b/src/ov-base-mat.cc @@ -86,9 +86,14 @@ // // x = []; x(i).f = rhs - octave_value tmp = octave_value::empty_conv (type, rhs); + if (type[1] == '.') + { + octave_value tmp = octave_value::empty_conv (type, rhs); - retval = tmp.subsasgn (type, idx, rhs); + retval = tmp.subsasgn (type, idx, rhs); + } + else + error ("invalid assignment expression"); } else {