Mercurial > octave-nkf
comparison src/ov-base.cc @ 10832:1b2fcd122c6a
allow user detect ignored outputs in m-functions
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 29 Jul 2010 12:45:23 +0200 |
parents | 8a868004a437 |
children | 89f4d7e294cc |
comparison
equal
deleted
inserted
replaced
10831:1646bd8e3735 | 10832:1b2fcd122c6a |
---|---|
177 { | 177 { |
178 // This way we may get a more meaningful error message. | 178 // This way we may get a more meaningful error message. |
179 return subsref (type, idx); | 179 return subsref (type, idx); |
180 } | 180 } |
181 | 181 |
182 octave_value_list | |
183 octave_base_value::subsref (const std::string& type, | |
184 const std::list<octave_value_list>& idx, | |
185 int nargout, | |
186 const std::list<octave_lvalue> *) | |
187 { | |
188 // Fall back to call without passing lvalue list. | |
189 return subsref (type, idx, nargout); | |
190 } | |
191 | |
182 octave_value | 192 octave_value |
183 octave_base_value::do_index_op (const octave_value_list&, bool) | 193 octave_base_value::do_index_op (const octave_value_list&, bool) |
184 { | 194 { |
185 std::string nm = type_name (); | 195 std::string nm = type_name (); |
186 error ("can't perform indexing operations for %s type", nm.c_str ()); | 196 error ("can't perform indexing operations for %s type", nm.c_str ()); |
191 octave_base_value::do_multi_index_op (int, const octave_value_list&) | 201 octave_base_value::do_multi_index_op (int, const octave_value_list&) |
192 { | 202 { |
193 std::string nm = type_name (); | 203 std::string nm = type_name (); |
194 error ("can't perform indexing operations for %s type", nm.c_str ()); | 204 error ("can't perform indexing operations for %s type", nm.c_str ()); |
195 return octave_value (); | 205 return octave_value (); |
206 } | |
207 | |
208 octave_value_list | |
209 octave_base_value::do_multi_index_op (int nargout, const octave_value_list& idx, | |
210 const std::list<octave_lvalue> *) | |
211 { | |
212 // Fall back. | |
213 return do_multi_index_op (nargout, idx); | |
196 } | 214 } |
197 | 215 |
198 idx_vector | 216 idx_vector |
199 octave_base_value::index_vector (void) const | 217 octave_base_value::index_vector (void) const |
200 { | 218 { |