diff src/ov.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 333bf09e3b6e
line wrap: on
line diff
--- a/src/ov.cc	Thu Jul 29 08:51:23 2010 +0200
+++ b/src/ov.cc	Thu Jul 29 12:45:23 2010 +0200
@@ -1202,6 +1202,17 @@
     return rep->subsref (type, idx, nargout);
 }
 
+octave_value_list
+octave_value::subsref (const std::string& type,
+                       const std::list<octave_value_list>& idx, int nargout,
+                       const std::list<octave_lvalue> *lvalue_list)
+{
+  if (lvalue_list)
+    return rep->subsref (type, idx, nargout, lvalue_list);
+  else
+    return subsref (type, idx, nargout);
+}
+
 octave_value
 octave_value::next_subsref (const std::string& type,
                             const std::list<octave_value_list>& idx,
@@ -1256,6 +1267,13 @@
   return rep->do_multi_index_op (nargout, idx);
 }
 
+octave_value_list
+octave_value::do_multi_index_op (int nargout, const octave_value_list& idx,
+                                 const std::list<octave_lvalue> *lvalue_list)
+{
+  return rep->do_multi_index_op (nargout, idx, lvalue_list);
+}
+
 #if 0
 static void
 gripe_assign_failed (const std::string& on, const std::string& tn1,