Mercurial > octave
comparison src/ov-class.cc @ 12106:11f9c592b035 release-3-2-x
Call user-defined subsref/subsasgn with 1xN structs instead of Nx1
author | David Grundberg <davidg@cs.umu.se> |
---|---|
date | Wed, 25 Nov 2009 11:47:49 +0100 |
parents | c781fb52c1d7 |
children |
comparison
equal
deleted
inserted
replaced
12105:2641c6febd46 | 12106:11f9c592b035 |
---|---|
158 | 158 |
159 size_t len = type.length (); | 159 size_t len = type.length (); |
160 | 160 |
161 if (len == idx.size ()) | 161 if (len == idx.size ()) |
162 { | 162 { |
163 Cell type_field (len, 1); | 163 Cell type_field (1, len); |
164 Cell subs_field (len, 1); | 164 Cell subs_field (1, len); |
165 | 165 |
166 std::list<octave_value_list>::const_iterator p = idx.begin (); | 166 std::list<octave_value_list>::const_iterator p = idx.begin (); |
167 | 167 |
168 for (size_t i = 0; i < len; i++) | 168 for (size_t i = 0; i < len; i++) |
169 { | 169 { |