diff src/oct-lvalue.cc @ 10206:37a08e0ce2dc

support Matlab-style empty output/input arguments
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 27 Jan 2010 12:41:49 +0100
parents cd96d29c5efa
children d3fc22c3071c
line wrap: on
line diff
--- a/src/oct-lvalue.cc
+++ b/src/oct-lvalue.cc
@@ -45,11 +45,10 @@
 octave_lvalue::set_index (const std::string& t,
 			  const std::list<octave_value_list>& i)
 {
-  if (! index_set)
+  if (idx.empty ())
     {
       type = t;
       idx = i;
-      index_set = true;
     }
   else
     error ("invalid index expression in assignment");