assignment to structure array
John W. Eaton
jwe at octave.org
Tue Jan 20 16:08:35 CST 2009
On 19-May-2008, Gregor Beck wrote:
| Bug report for Octave 3.0.0 configured for x86_64-unknown-linux-gnu
|
| Description:
| -----------
|
| * see below
|
| Repeat-By:
| ---------
|
| octave:1> [s([1,3]).a]=deal(1,3);
| octave:2> assert(s,struct('a',{1,[],3}))
| error: assert (s,struct ("a", {1, [], 3})) expected
| {
| a =
|
| (,
| [1] = 1
| [2] = [](0x0)
| [3] = 3
| ,)
|
| }
| but got
| {
| a =
|
| (,
| [1] =
|
| (,
| [1] = 1
| [2] = 3
| ,)
|
| [2] = [](0x0)
| [3] =
|
| (,
| [1] = 1
| [2] = 3
| ,)
|
| ,)
|
| }
This problem will be fixed in Octave 3.2. See the following thread
for more details:
https://www-old.cae.wisc.edu/pipermail/bug-octave/2009-January/007715.html
Thanks,
jwe
More information about the Bug-octave
mailing list