octave 3.1.55 different from 3.0

John W. Eaton jwe at octave.org
Thu Apr 9 13:34:36 CDT 2009


On  9-Apr-2009, Jaroslav Hajek wrote:

| On Thu, Apr 9, 2009 at 4:12 PM, John W. Eaton <jwe at octave.org> wrote:
| > On  9-Apr-2009, Bertrand Roessli wrote:
| >
| > | if I execute this function in both Octave 3.0 and 3.1.55 I get
| > | a different answer and I think that 3.0 is right?
| >
| > Please report problems to the bug at octave.org list.
| >
| > This looks like a problem with indexing.  Here is a simpler example:
| >
| >  c = cell (2, 1);
| >  s.a(1:2) = [1, 1]
| >  c{1} = s
| >  s.a(1:2) = [2, 2]
| >  c{2} = s
| >
| > jwe
| 
| This gives (recent tip):
| 
| c =
| 
| {
|   [1,1] =
|   {
|     a =
| 
|        1   1
| 
|   }
| 
|   [2,1] =
|   {
|     a =
| 
|        2   2
| 
|   }
| 
| }
| 
| 
| what's wrong?

I checked it with 3.1.54, which results in

  c =

  {
    [1,1] =
    {
      a =

	 2   2

    }

    [2,1] =
    {
      a =

	 2   2

    }

  }

But as you say it works correctly in the current sources, so I guess
this problem is already fixed.

I guess should wake up before doing email.

jwe



More information about the Bug-octave mailing list