|
From: | Ray Zimmerman |
Subject: | [Octave-bug-tracker] [bug #59305] which() returns "built-in function" for user-defined class |
Date: | Mon, 19 Oct 2020 13:15:51 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15 |
URL: <https://savannah.gnu.org/bugs/?59305> Summary: which() returns "built-in function" for user-defined class Project: GNU Octave Submitted by: 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: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Release: 6.0.90 Discussion Lock: Any Operating System: Mac OS _______________________________________________________ Details: 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 _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59305> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |