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


bug #53118: char ( function_handle ) throws error

Submitted by:  jsh <jsh>
Submitted on:  Sun 11 Feb 2018 05:21:00 AM UTC  
Category: InterpreterSeverity: 2 - Minor
Priority: 3 - LowItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating 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.


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.

jsh <jsh>


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can click here to 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
    Sun 11 Feb 2018 04:05:23 PM UTCrik5Release4.2.1=>dev
    Sun 11 Feb 2018 04:05:12 PM UTCrik5Severity3 - Normal=>2 - Minor
      Priority5 - Normal=>3 - Low
      Summarychar( @function_handle ) throws error=>char ( function_handle ) throws error

    Back to the top

    Powered by Savane 3.1-cleanup1