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

 
 

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

Submitted by:  Ray Zimmerman <rdzman>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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)
  •  

    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 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.6