Mercurial > hg > octave-nkf
changeset 2950:5252c7275b8c
[project @ 1997-05-09 14:23:43 by jwe]
author | jwe |
---|---|
date | Fri, 09 May 1997 14:23:43 +0000 |
parents | 49b42be38aa1 |
children | ab9673e3bb5d |
files | src/variables.cc |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -113,18 +113,18 @@ octave_variable_reference::assign (octave_value::assign_op op, const octave_value& rhs) { - // octave_value saved_val; + octave_value saved_val; - // if (chg_fcn) - // octave_value saved_val = *val; + if (chg_fcn) + octave_value saved_val = *val; if (struct_elt_name.empty ()) val->assign (op, rhs); else val->assign_struct_elt (op, struct_elt_name, rhs); - // if (chg_fcn && chg_fcn () < 0) - // *val = saved_val; + if (chg_fcn && chg_fcn () < 0) + *val = saved_val; } void