[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50875] which() returns 'built-in function' fo
From: |
Ray Zimmerman |
Subject: |
[Octave-bug-tracker] [bug #50875] which() returns 'built-in function' for user object methods |
Date: |
Tue, 25 Apr 2017 12:26:32 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30 |
URL:
<http://savannah.gnu.org/bugs/?50875>
Summary: which() returns 'built-in function' for user object
methods
Project: GNU Octave
Submitted by: rdzman
Submitted on: Tue 25 Apr 2017 04:26:30 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Ray Zimmerman
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: Mac OS
_______________________________________________________
Details:
For a user-defined class 'myclass', which() has different behavior on Octave
and Matlab. For example, given the attached file, placed in a @myclass
directory on the path, I get the following:
Matlab
++
>> which myclass
/Users/ray/test/@myclass/myclass.m % myclass constructor
>> which @myclass
'@myclass' not found.
>> which @myclass/myclass
/Users/ray/test/@myclass/myclass.m % myclass constructor
--
Octave
++
> which myclass
'myclass' is a built-in function
> which @myclass
> which @myclass/myclass
'@myclass/myclass' is a built-in function
--
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 25 Apr 2017 04:26:30 PM UTC Name: myclass.m Size: 180B By:
rdzman
<http://savannah.gnu.org/bugs/download.php?file_id=40506>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50875>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50875] which() returns 'built-in function' for user object methods,
Ray Zimmerman <=