bugGNU Octave - Bugs: bug #45351, function handles to classdef...

 
 

bug #45351: function handles to classdef methods not supported

Submitted by:  Richard <crobar>
Submitted on:  Fri 19 Jun 2015 07:47:12 AM UTC  
 
Category: InterpreterSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Richard CrozierOpen/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.

 

Fri 19 Jun 2015 01:41:04 PM UTC, comment #2:

Yes, please do add to the wiki page, that should be the best place for someone looking to help improve classdef to start.

Mike Miller <mtmiller>
Project Administrator
Fri 19 Jun 2015 09:20:18 AM UTC, comment #1:

To add to the issue, replace:

with:

or even:

and you get the following error:

while both work in MATLAB... Here are some links to related documentation where this is discussed:


By the way, I've been adding similar cases to this wiki page, I hope you guys keep track of it :)

Amro <amro_octave>
Fri 19 Jun 2015 07:47:12 AM UTC, original submission:

I have attached a file containing a classdef class definition. In the constructor, a handle is created to a method in the class, and it is then called in another method.

This behaviour works in Matlab, but not in Octave

In matlab:

In Octave:

While I find this an odd way to do things I came across it in code in the wild, so it's out there.

Richard <crobar>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #34258:  method_function_handle_test.m added by crobar (471B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by amro_octave (Posted a comment)
  • -unavailable- added by crobar (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
    Fri 19 Jun 2015 01:41:04 PM UTCmtmillerSeverity3 - Normal=>1 - Wish
      StatusNone=>Confirmed
      Release4.0.0=>dev
      SummaryHandle to classdef method works in ML but not Octave=>function handles to classdef methods not supported
    Fri 19 Jun 2015 07:47:12 AM UTCcrobarAttached File-=>Added method_function_handle_test.m, #34258

    Back to the top


    Powered by Savane 3.1-cleanup1