[Pkg-octave-devel] Bug#457541: octave2.9: multiple assignment to a struct array
Rafael Laboissiere
rafael at debian.org
Sun Dec 23 14:42:24 UTC 2007
package octave2.9
tags 457541 moreinfo unreproducible
thanks
* Francesco Potorti` <Potorti at isti.cnr.it> [2007-12-23 11:22]:
> 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
>
> This error does not happen with octave 2.1.73-13, which indeed does the
> expected thing.
>
> Octave 2.9.14-1 does something different, which in my opinion is an
> error, and which is not easy for me to explain in words. Just remove
> the semicolons at the end of the statements and see for yourself.
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?
--
Rafael
More information about the Pkg-octave-devel
mailing list