diff 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
line wrap: on
line diff
--- a/src/ov-base.cc	Thu Jul 29 08:51:23 2010 +0200
+++ b/src/ov-base.cc	Thu Jul 29 12:45:23 2010 +0200
@@ -179,6 +179,16 @@
   return subsref (type, idx);
 }
 
+octave_value_list
+octave_base_value::subsref (const std::string& type,
+                            const std::list<octave_value_list>& idx,
+                            int nargout,
+                            const std::list<octave_lvalue> *)
+{
+  // Fall back to call without passing lvalue list.
+  return subsref (type, idx, nargout);
+}
+
 octave_value
 octave_base_value::do_index_op (const octave_value_list&, bool)
 {
@@ -195,6 +205,14 @@
   return octave_value ();
 }
 
+octave_value_list
+octave_base_value::do_multi_index_op (int nargout, const octave_value_list& idx,
+                                      const std::list<octave_lvalue> *)
+{
+  // Fall back.
+  return do_multi_index_op (nargout, idx);
+}
+
 idx_vector
 octave_base_value::index_vector (void) const
 {