(
Jump to the original submission)
Thu 15 Aug 2013 11:22:34 PM UTC, comment #10:
I pushed your documentation patch (http://hg.savannah.gnu.org/hgweb/octave/rev/a654c1eccd29).
|
Thu 15 Aug 2013 01:38:48 PM UTC, comment #9:
patch for doc.
(file #28851)
|
Wed 14 Aug 2013 04:44:58 PM UTC, 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
|
Mon 12 Aug 2013 04:44:04 PM UTC, comment #7:
Attached patch without deprecating \
(file #28821)
|
Mon 12 Aug 2013 04:05:14 PM UTC, comment #6:
Attached patch fixes this bug and marks \ as deprecated (except for double quoted strings).
(file #28820)
|
Wed 19 Jun 2013 10:58:14 PM UTC, 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.
|
Wed 03 Apr 2013 07:57:38 AM UTC, 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."
|
Wed 03 Apr 2013 05:14:13 AM UTC, 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.
|
Wed 03 Apr 2013 05:08:20 AM UTC, 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.
|
Wed 03 Apr 2013 04:55:17 AM UTC, 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.
|
Wed 03 Apr 2013 01:43:29 AM UTC, original submission:
Matlab '...' continuation sequence is not supported by the interpreter.
Test - this should be a valid command:
|
(Note: upload size limit is set to 16384 kB, after insertion of the required
escape characters.)
Attach File(s):
Comment:
Depends on the following items: None found
Items that depend on this one: None found
Follow 8 latest changes.
| Date |
Changed By |
Updated Field |
Previous Value |
=> |
Replaced By |
| Thu 15 Aug 2013 01:38:48 PM UTC | dac922 | Attached File | - |  | Added continuation_lines_doc.diff, #28851 |
| Wed 14 Aug 2013 04:44:58 PM UTC | jwe | Status | Confirmed |  | Fixed |
| | | Open/Closed | Open |  | Closed |
| Mon 12 Aug 2013 04:44:04 PM UTC | dac922 | Attached File | - |  | Added continuationmarker_wo_deprecating_backslash.diff, #28821 |
| Mon 12 Aug 2013 04:05:14 PM UTC | dac922 | Attached File | - |  | Added continuationmarker.diff, #28820 |
| Wed 03 Apr 2013 04:55:17 AM UTC | rik5 | Severity | 3 - Normal |  | 2 - Minor |
| | | Priority | 5 - Normal |  | 2 |
| | | Status | None |  | Confirmed |