[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55858] methods() does not include constructor
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #55858] methods() does not include constructors |
Date: |
Thu, 7 Mar 2019 18:36:53 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?55858>
Summary: methods() does not include constructors
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Thu 07 Mar 2019 03:36:51 PM PST
Category: Octave Function
Severity: 1 - Wish
Priority: 5 - Normal
Item Group: Incorrect Result
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The methods() function should include class constructors in the list of method
names. This applies both to classdef classes and to Java classes. The
constructor name is returned without any Matlab or Java package prefix, just
the bare name (e.g. "String" instead of "java.lang.String", or "Map" instead
of "containers.Map").
With the "-full" option, all overloaded constructors should be returned for
Java classes. No return type is listed for Java constructors.
It looks to me like the constructor name is sorted (in ASCII sort order, where
all capitals come before lowercase) along with other methods. In Java classes,
since methods typically start with a lowercase, this means the uppercase
constructor name comes first in the list. In classdef classes, the constructor
name is sorted and appears within the list of other method names.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55858>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55858] methods() does not include constructors,
Mike Miller <=
- [Octave-bug-tracker] [bug #55858] methods() does not include constructors, John W. Eaton, 2019/03/20
- [Octave-bug-tracker] [bug #55858] methods() does not include constructors, Mike Miller, 2019/03/20
- [Octave-bug-tracker] [bug #55858] methods() does not include constructors, Mike Miller, 2019/03/20
- [Octave-bug-tracker] [bug #55858] methods() does not include constructors, John W. Eaton, 2019/03/20
- [Octave-bug-tracker] [bug #55858] methods() does not include constructors, Mike Miller, 2019/03/20
- [Octave-bug-tracker] [bug #55858] methods() does not include constructors, Mike Miller, 2019/03/20
- [Octave-bug-tracker] [bug #55858] methods() does not include constructors, Mike Miller, 2019/03/20
- [Octave-bug-tracker] [bug #55858] methods() does not include constructors, Rik, 2019/03/25