[Pkg-octave-devel] Bug#457541: octave2.9: multiple assignment to a struct array

Francesco Potorti` Potorti at isti.cnr.it
Fri Jan 18 12:00:17 UTC 2008

>> Package: octave2.9
>> Version: 1:2.9.14-1
>> Severity: normal
>> octave> s=struct("a",{},"b",{},"c",{},"d",{});
>> octave> s(1).a=1;
>> octave> [s(1).b s(1).c s(1).d]=sscanf("2 3 4","%d %d %d","C");
>> octave> s(2).a=11;
>> octave> [s(2).b s(2).c s(2).d]=sscanf("12 13 14","%d %d %d","C");
>> error: some elements undefined in return list
>> error: evaluating assignment expression near line 42, column 25

>I cannot replicate the bug with octave2.9 2.9.19-2, the version currently in
>unstable.  Could you please confirm that this is also the case for you?

I just upgraded to octave3.0 and indeed the bug is not there.  I suppose
that you can close it.

THank you

More information about the Pkg-octave-devel mailing list