'for' loop loops over fields of empty structure array
Jaroslav Hajek
highegg at gmail.com
Sun Mar 22 15:45:52 CDT 2009
On Sun, Mar 22, 2009 at 5:22 PM, Carsten Clark
<tantumquantum+gnuoctave at gmail.com> wrote:
> Bug report for Octave 3.0.1 configured for i686-pc-cygwin
>
> Description:
> -----------
>
> * Given a struct array, 'for' normally executes once for each
> struct in the array. However, given an empty struct array,
> 'for' loops over the fields of the struct. I would expect
> the loop not to execute in this case (that's what MATLAB
> does, anyway).
>
I fixed this in the development sources.
thanks
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
More information about the Bug-octave
mailing list