[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
http://www.gnu.org/software/octave/doc/interpreter/Matrices.html#Matrices
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")]
and
("nam","ee")
is not valid syntax.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37056>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/