comparison src/ov-base.cc @ 2962:5e0fe4c5d52f

[project @ 1997-05-12 03:13:57 by jwe]
author jwe
date Mon, 12 May 1997 03:21:56 +0000
parents ac3368dba5d3
children ebbc34ff7f66
comparison
equal deleted inserted replaced
2961:8a77d52c9d02 2962:5e0fe4c5d52f
50 int octave_base_value::t_id = -1; 50 int octave_base_value::t_id = -1;
51 51
52 const string octave_base_value::t_name ("<unknown type>"); 52 const string octave_base_value::t_name ("<unknown type>");
53 53
54 octave_value 54 octave_value
55 octave_base_value::index (const octave_value_list&) const 55 octave_base_value::do_index_op (const octave_value_list&) const
56 { 56 {
57 string nm = type_name (); 57 string nm = type_name ();
58 error ("can't perform indexing operations for %s type", nm.c_str ()); 58 error ("can't perform indexing operations for %s type", nm.c_str ());
59 return octave_value (); 59 return octave_value ();
60 } 60 }
66 error ("%s type invalid as index value", nm.c_str ()); 66 error ("%s type invalid as index value", nm.c_str ());
67 return idx_vector (); 67 return idx_vector ();
68 } 68 }
69 69
70 octave_value 70 octave_value
71 octave_base_value::struct_elt_val (const string&, bool) const 71 octave_base_value::do_struct_elt_index_op (const string&,
72 const octave_value_list&,
73 bool)
74 {
75 string nm = type_name ();
76 error ("can't perform indexed structure reference operations for %s type",
77 nm.c_str ());
78 return octave_value ();
79 }
80
81 octave_value
82 octave_base_value::do_struct_elt_index_op (const string&, bool)
72 { 83 {
73 string nm = type_name (); 84 string nm = type_name ();
74 error ("can't perform structure reference operations for %s type", 85 error ("can't perform structure reference operations for %s type",
75 nm.c_str ()); 86 nm.c_str ());
76 return octave_value (); 87 return octave_value ();