suspect bug with parenthesis

David Bateman David.Bateman at motorola.com
Thu Sep 18 10:21:43 CDT 2008


Francesco Potorti` wrote:
> Is this normal?
>
> octave> x=axis
> x =
>
>    0.00000   1.00000   0.00000   0.03700   0.00000   1.00000
>
> octave> (x=axis)
> parse error:
>
>   syntax error
>
>   
>>>> (x=axis)
>>>>         

Well its consistent with matlab

 >> x=axis

x =

     0     1     0     1

 >> (x=axis)
??? (x=axis)
      |
Error: The expression to the left of the equals sign is not a valid 
target for
an assignment.

I suppose the reason is that the parenthesis mean that (x=axis) is 
treated in its entirety as an RHS.

-- 
David Bateman                                David.Bateman at motorola.com
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



More information about the Bug-octave mailing list