bugGNU Octave - Bugs: bug #59305, which() returns "built-in...

 
 

bug #59305: which() returns "built-in function" for user-defined class

Submitter:  Ray Zimmerman <rdzman>
Submitted:  Mon 19 Oct 2020 05:15:49 PM UTC
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.0.90 Operating System:  * Mac OS
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Mon 19 Oct 2020 07:12:34 PM UTC, comment #1: 

This is a duplicate of bug #49434.

Closing report.

Markus M├╝tzel <mmuetzel>
Project Member
Mon 19 Oct 2020 05:15:49 PM UTC, original submission:  

Suppose I have a file named myclass.m with the following content:

classdef myclass < handle
end

On MATLAB, which('myclass') returns the path, but on Octave it returns "built-in function".

MATLAB output:

>> obj = myclass

obj =

  myclass with no properties.

>> which('myclass')
/my/path/myclass.m  % myclass constructor

Octave output:

octave:1> obj = myclass
obj =

  myclass object with properties:


octave:2> which('myclass')
'myclass' is a built-in function

Ray Zimmerman <rdzman>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by rdzman (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 project members can vote.

     

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-19 mmuetzel StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #49434

    Back to the top


    Powered by Savane 3.9