bugGNU Octave - Bugs: bug #59784, additional text at end of block...

 
 

bug #59784: additional text at end of block comment produces doubled warning

Submitted by:  Rik <rik5>
Submitted on:  Wed 30 Dec 2020 05:13:45 PM UTC  
 
Category:  Interpreter Severity:  2 - Minor
Priority:  3 - Low Item Group:  Other
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Wed 30 Dec 2020 05:13:45 PM UTC, original submission:  

This isn't a big deal, but consider the script below.

#{
comment line
#} disp ('out of block comment');

When the script is run the output from the interpreter is:

warning: block comment open at end of input
warning: near line 4 of file 'dbl_msg_print.m'
warning: block comment open at end of input
warning: near line 4 of file 'dbl_msg_print.m'

I get that the interpreter is unhappy, but it really only needs to print the message once.

On a second note, I think the warning message could be clearer.  Maybe something like

warning: trailing text after block comment close

Rik <rik5>
Project Administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-04 rik5 Priority5 - Normal => 3 - Low

    Back to the top


    Powered by Savane 3.5