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:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
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.


Sat 27 Oct 2018 01:52:49 AM UTC, comment #3:

Works just fine now. Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Fri 26 Oct 2018 07:01:58 PM UTC, comment #2:

I pushed the following changeset:


Works for me now.

John W. Eaton <jwe>
Project Administrator
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.


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:

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 jwe (Posted a comment)
  • -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.




    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-27 rik5 StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2018-10-26 jwe StatusConfirmed => Ready For Test
    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.4