bugGNU Octave - Bugs: bug #43580, Dellistener example not working

 
 

bug #43580: Dellistener example not working

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Tue 11 Nov 2014 05:38:08 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed 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
   

Tue 11 Nov 2014 08:09:24 PM UTC, comment #1: 

I have pushed a changeset that fixes the issue at http://hg.savannah.gnu.org/hgweb/octave/rev/a2595c4b8efe

Closing report.

Pantxo Diribarne <pantxo>
Group Member
Tue 11 Nov 2014 05:38:08 PM UTC, original submission:  

The example that is provided in the help string of "dellistener" function leads to an error:


function my_listener (h, dummy, p1)
  fprintf ("my_listener called with p1=%s\n", p1);
endfunction

c = {@my_listener, "my string"};
addlistener (gcf, "position", c);
dellistener (gcf, "position", c);

=> octave_base_value::convert_to_str_internal (): wrong type argument 'function handle'


Concequently, there is currently no way to delete a specific listener.

I suppose this example have once worked (before 3.8 at least) so I am marking it as regression.

Pantxo Diribarne <pantxo>
Group Member

 

(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 pantxo (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-11 pantxo StatusNone Fixed
        Open/ClosedOpen Closed
    2014-11-11 pantxo CategoryNone Plotting

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code