39 const std::list<octave_value_list>& idx)
46 retval = do_index_op (idx.front ());
52 std::string nm = type_name ();
53 error (
"%s cannot be indexed with %c", nm.c_str (), type[0]);
67 const std::list<octave_value_list>& idx,
76 if (type.length () == 1)
77 retval = numeric_assign (type, idx, rhs);
80 std::string nm = type_name ();
81 error (
"in indexed assignment of %s, last rhs index must be ()",
90 std::string nm = type_name ();
91 error (
"%s cannot be indexed with %c", nm.c_str (), type[0]);
139 retval = (
scalar != ST ());
148 print_raw (os, pr_as_read_syntax);
155 bool pr_as_read_syntax)
const
164 const std::string& name)
const
175 std::ostringstream buf;
177 std::string tmp = buf.str ();
178 size_t pos = tmp.find_first_not_of (
" ");
179 os << tmp.substr (pos);
191 *(
reinterpret_cast<ST *
>(where)) =
scalar;