bugGNU Octave - Bugs: bug #53118, char ( function_handle ) throws...

 
 

bug #53118: char ( function_handle ) throws error

Submitted by:  -X- <jsh>
Submitted on:  Sun 11 Feb 2018 05:21:00 AM UTC  
 
Category:  Interpreter Severity:  2 - Minor
Priority:  3 - Low Item Group:  Matlab Compatibility
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.

 

Sun 11 Feb 2018 04:05:12 PM UTC, comment #1:

Confirmed. The wider issue is that function handles probably need to implement an overload of the char function which just returns the string version of them.

For example,

Clearly there are routines that understand how to print the string representation of a function handle.

But,

This is the case with all function handles including handles to built-in functions.

Rik <rik5>
Project Administrator
Sun 11 Feb 2018 05:21:00 AM UTC, original submission:

Octave char( @function_handle ) for example char(@plus) throws an error when it should simply return the name of the function as a char string.

-X- <jsh>

 

(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 (Posted a comment)
  • -email is unavailable- added by jsh (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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-11 rik5 Release4.2.1 => dev
    2018-02-11 rik5 Severity3 - Normal => 2 - Minor
        Priority5 - Normal => 3 - Low
        StatusNone => Confirmed
        Summarychar( @function_handle ) throws error => char ( function_handle ) throws error

    Back to the top


    Powered by Savane 3.3