bugGNU Octave - Bugs: bug #33297, text after block comment

 
 

bug #33297: text after block comment

Submitter:  Muhali <muhali>
Submitted:  Wed 11 May 2011 11:22:33 PM UTC
   
 
Category:  None Severity:  2 - Minor
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 16 May 2011 07:48:56 PM UTC, comment #2: 

I added documentation about the block comment markers appearing alone on a line in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/1acead61c527).  I will close this bug, and leave the wishlist item #32598 open.

Rik <rik5>
Group administrator
Sun 15 May 2011 03:33:39 AM UTC, comment #1: 

Currently the parser follows Matlab behavior and requires the '#{' block start to be alone on the line.

There is already a request to extend the parser behavior to allow extra text on the line (bug #32598).

The best case scenario would be to document the current behavior until bug #32598 is either implemented or rejected.

Rik <rik5>
Group administrator
Wed 11 May 2011 11:22:33 PM UTC, original submission:  

The function


function quick_countdown
   # Count down for main rocket engines
   disp(3);
   #{
   disp(2);
   disp(1);
   #}
   disp("Blast Off!");  # Rocket leaves pad
endfunction


behaves as expected (displaying only '3'). But if one replaces the first block comment with '#{ some text' it ignores the block comment entirely, that is, it treats '#{' and '#}' as normal comments.

If this is not a bug the documentation should state explicitly that block comments should be the only thing on the line.

M.

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-16 rik5 Open/ClosedOpen Closed
    2011-05-15 rik5 Severity3 - Normal 2 - Minor
        StatusNone Duplicate
        Dependencies- Depends on bugs #32598

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code