[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #32598] Wishlist : More C-like multi-line bloc
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #32598] Wishlist : More C-like multi-line block comments |
Date: |
Wed, 25 Apr 2018 11:36:51 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Update of bug #32598 (project octave):
Status: Postponed => Wont Fix
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
Looking at some old bug reports that are still open...
Octave was changed at some point to only recognize the end of a block comment
marker "#} or %}" if it appears as the beginning of a line (not counting space
characters).
I think this is probably the safest thing to do for compatibility since it is
possible that some working Matlab code could have
%{
this is a block comment %}
still a block comment in Matlab
%}
and if we changed the rules to recognize the first "%}" above as the end of
the block comment, this valid Matlab code would fail in Octave.
So I think this report should be closed as "won't fix".
A related issue is that there could be some working Matlab code that looks
like this:
%{
block comment
#}
still a block comment in Matlab
%}
and that will fail in Octave. I'll open a separate bug report about this
issue.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32598>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #32598] Wishlist : More C-like multi-line block comments,
John W. Eaton <=