« Return to Thread: Cell assignment unstable

Re: Cell assignment unstable

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View in Thread

On Wed, Jul 1, 2009 at 5:23 PM, Jens Tusche<jens.tusche@...> wrote:

> Cc: tusche@...
> Subject: Cell assignment unstable
> --------
> Bug report for Octave 3.0.5 configured for x86_64-unknown-linux-gnu
>
> Description:
> -----------
>
>  * Cell assignments are unstable. I have experienced this on a CentOS
> server with Octave 3.0.5 installed
>    as well as on an Ubuntu Notebook with Octave 3.0.1 on it.
>
> Repeat-By:
> ---------
>
>
> The "if T" condition is sometimes FALSE although T is printed correctly.
>
>
> T = [];
>
> for i=1:1000
>  T{1} = 'test';
>  i
>  if T
>    T
>  else
>    T
>    error('bug says Hello')
>  end
> end
>
>

I think cells were never meant to be used as test conditions. In
3.2.0, Octave will give an explicit error.

cheers

--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave

 « Return to Thread: Cell assignment unstable