bugGNU Octave - Bugs: bug #39032, parsing comma after line break

 
 

bug #39032: parsing comma after line break

Submitted by:  Clemens Buchacher <drizzd>
Submitted on:  Tue 21 May 2013 04:45:02 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Clemens BuchacherOpen/Closed: Closed
Release: 3.6.4Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 08 Jul 2013 04:29:37 PM UTC, comment #3:

I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/aebb54d99dba

I think this fixes the problem you reported, so I'm closing this bug report.

I forgot to add this bug report number to the changeset log message. Oops.

John W. Eaton <jwe>
Project Administrator
Fri 24 May 2013 06:18:00 PM UTC, comment #2:

This was already mentioned in #34346.

Guillaume <gyom>
Fri 24 May 2013 03:36:35 PM UTC, comment #1:

The same problem exists without the line break. Octave gives a parse error if an array definition begins with a comma or a semicolon:

Octave:

Matlab:

Adam H Aitkenhead <adama>
Tue 21 May 2013 04:45:02 PM UTC, original submission:

This is valid in Matlab 2011b, but not in Octave:

octave:1> [0

> ,1]

parse error:

syntax error

>>> ,1]

^

Matlab output:

>> [0

,1]

ans =

0
1

>> [0, 1

, 2, 3]

ans =

0 1
2 3

If the line break happens after the comma, Octave is fine with it:

octave.exe:9> [1,

> 0]

ans =

1
0

Clemens Buchacher <drizzd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by gyom (Posted a comment)
  • -unavailable- added by adama (Posted a comment)
  • -unavailable- added by drizzd (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 08 Jul 2013 04:29:37 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1