Mercurial > hg > octave-lyh
diff src/ov-struct.cc @ 2420:449f35baba49
[project @ 1996-10-16 18:46:25 by jwe]
author | jwe |
---|---|
date | Wed, 16 Oct 1996 18:46:26 +0000 |
parents | 2142216bf85a |
children | e46137c06781 |
line wrap: on
line diff
--- a/src/ov-struct.cc +++ b/src/ov-struct.cc @@ -40,7 +40,7 @@ octave_value -octave_struct::struct_elt_val (const string& nm) const +octave_struct::struct_elt_val (const string& nm, bool silent) const { octave_value retval; @@ -48,7 +48,7 @@ if (idx) retval = map.contents (idx); - else + else if (! silent) error ("structure has no member `%s'", nm.c_str ()); return retval;