help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parsing problem. Bug?


From: Stefano Ghirlanda
Subject: Re: parsing problem. Bug?
Date: Thu, 29 Jan 1998 11:17:40 +0000 (GMT)

On Wed, 28 Jan 1998, Andy Adler wrote:

> if you try to define a vector
>   
>   octave:69> a=b=c=d=1;
>   octave:70> [a b (c+d)]
>   error: invalid vector index = 2
>   error: evaluating index expression near line 70, column 5
> 

It is true for me as well, with version 2.0.9 (i686-pc-linux-gnu) compiled
from source on RedHAt Linux 4.2.

> If you bracket the b the answer is wrong
>   octave:70> [a (b) (c+d)]
>   ans = 1  2
> 

I reproduce this as well...

> You need to give everything brackets
>   octave:71> [(a) (b) (c+d)]
>   ans =
>     1  1  2
>   

Or no brackets at all:

octave:8> a=b=c=d=1;
octave:9> [a b c+d]
ans =

  1  1  2
              
I agree that this can be considered a bug...

        Cheers,

_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: Frescati Campus, Hus D, Rum 554. Office Phone: +46-8-164055
Mail: Svante Arrheniusv. 14, S-106 91, Stockholm, Sweden
E-mail: address@hidden, Web: http://rerumnatura.zool.su.se
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-     



reply via email to

[Prev in Thread] Current Thread [Next in Thread]