diff src/ov.cc @ 2891:1a30f46e1870

[project @ 1997-04-28 01:49:00 by jwe]
author jwe
date Mon, 28 Apr 1997 02:01:22 +0000
parents 0a076230ca87
children facd9d10e5c1
line wrap: on
line diff
--- a/src/ov.cc	Mon Apr 28 01:45:58 1997 +0000
+++ b/src/ov.cc	Mon Apr 28 02:01:22 1997 +0000
@@ -523,6 +523,12 @@
   return *this;
 }
 
+octave_value_list
+octave_value::eval (int, const octave_value_list& idx)
+{
+  return (idx.length () > 0) ? index (idx) : *this;
+}
+
 Octave_map
 octave_value::map_value (void) const
 {