bugGNU Octave - Bugs: bug #38653, matlab ... continuation sequence...

 
 

bug #38653: matlab ... continuation sequence not supported

Submitted by:  John Donoghue <lostbard>
Submitted on:  Wed Apr 3 01:43:29 2013  
 
Category: InterpreterSeverity: 2 - Minor
Priority: 2Item Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: John DonoghueOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Thu Aug 15 23:22:34 2013, comment #10:

I pushed your documentation patch (http://hg.savannah.gnu.org/hgweb/octave/rev/a654c1eccd29).

Rik <rik5>
Project Administrator
Thu Aug 15 13:38:48 2013, comment #9:

patch for doc.

(file #28851)

Stefan Mahr <dac922>
Wed Aug 14 16:44:58 2013, comment #8:

I pushed a series of changesets to ignore everything after the ... marker, use ... instead of \ in Octave sources, and then to deprecate \ outside of double-quoted character strings.

Thanks.

http://hg.savannah.gnu.org/hgweb/octave/rev/7babcdb9bc13
http://hg.savannah.gnu.org/hgweb/octave/rev/8be8a65d3ca8
http://hg.savannah.gnu.org/hgweb/octave/rev/e993fa124b46

John W. Eaton <jwe>
Project Administrator
Mon Aug 12 16:44:04 2013, comment #7:

Attached patch without deprecating \

(file #28821)

Stefan Mahr <dac922>
Mon Aug 12 16:05:14 2013, comment #6:

Attached patch fixes this bug and marks \ as deprecated (except for double quoted strings).

(file #28820)

Stefan Mahr <dac922>
Wed Jun 19 22:58:14 2013, comment #5:

It seems like Matlab is very obviously and explicitly turning everything after the continuation marker '...' into a comment. We probably should do the same.

In the mean time, it is easy to workaround this and get the same behavior in Octave by using '... %' so that the line is a continuation and the comment character '%' causes Octave's parser to ignore the rest of the line.

Rik <rik5>
Project Administrator
Wed Apr 3 07:57:38 2013, comment #4:

such a behaviour isn't very new for Matlab, since Matlab7.0(R14) documentation has such a phrase:
"Three or more periods before the end of a line cause MATLAB to ignore the remaining text on the current line and continue the function on the next line. This effectively makes a comment out of anything on the current line that follows the three periods."

sergey plotnikov <nul0m>
Wed Apr 3 05:14:13 2013, comment #3:

OK, except that I think we'll want to handle "\.\.\." and "\\\n" differently now. So maybe this is a good time to limit where these continuations can appear, and possibly deprecate the "\\\n" style.

John W. Eaton <jwe>
Project Administrator
Wed Apr 3 05:08:20 2013, comment #2:

Or followed by whitespace or a comment. I think we have allowed that for many years now. If this isn't something new for Matlab, it's surprising that I've never seen a bug report about this until now. In any case, it should be fairly easy to fix.

John W. Eaton <jwe>
Project Administrator
Wed Apr 3 04:55:17 2013, comment #1:

I wonder if this is a rather new addition? It seems that it used to be that '...' was only valid at the end of the line. This is certainly what Octave currently implements.

Rik <rik5>
Project Administrator
Wed Apr 3 01:43:29 2013, original submission:

Matlab '...' continuation sequence is not supported by the interpreter.

Test - this should be a valid command:

John Donoghue <lostbard>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #28820:  continuationmarker.diff added by dac922 (34kB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dac922 (Updated the item)
  • -unavailable- added by nul0m (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by lostbard (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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Aug 15 13:38:48 2013dac922Attached File-=>Added continuation_lines_doc.diff, #28851
    Wed Aug 14 16:44:58 2013jweStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon Aug 12 16:44:04 2013dac922Attached File-=>Added continuationmarker_wo_deprecating_backslash.diff, #28821
    Mon Aug 12 16:05:14 2013dac922Attached File-=>Added continuationmarker.diff, #28820
    Wed Apr 3 04:55:17 2013rik5Severity3 - Normal=>2 - Minor
      Priority5 - Normal=>2
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup