[Top][All Lists]

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

[Octave-bug-tracker] [bug #37056] struct syntax error in array

From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #37056] struct syntax error in array
Date: Wed, 08 Aug 2012 13:12:10 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20100101 Firefox/10.0.5 Iceweasel/10.0.5

Update of bug #37056 (project octave):

              Item Group:              Regression => None                   
                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 


Follow-up Comment #1:

This is not a bug.  For compatibility with Matlab, spaces are treated
specially inside [] and {}.  Please see


for more info.

Also, in the future, please use "verbatim" tags to quote code snippets.  I was
only able to tell that there were differences in the spacing by looking at the
email that the bug tracker sent, not by looking at the report on the web.

To clarify for others who may look here later, the code that generates the
error is

[struct ("nam","ee")]

and Octave generates an error because the space after "struct" is handled
specially and Octave parses this as if you had written

[struct, ("nam","ee")]



is not valid syntax.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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