[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44498] isvector: Always returns true for obje
From: |
Oliver Heimlich |
Subject: |
[Octave-bug-tracker] [bug #44498] isvector: Always returns true for objects from user defined classes |
Date: |
Tue, 10 Mar 2015 06:58:07 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.5.0 |
URL:
<http://savannah.gnu.org/bugs/?44498>
Summary: isvector: Always returns true for objects from user
defined classes
Project: GNU Octave
Submitted by: oheim
Submitted on: Di 10 Mär 2015 07:58:06 CET
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name: Oliver Heimlich
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0-rc1
Operating System: Any
_______________________________________________________
Details:
The function isvector always returns true for user defined objects (whose
builtin size is [1 1]). However, the user defined class may have overridden
the size method.
See bug #43925 for a similar regression with isscalar and bug #44334 for a
similar regression with iseuqal. In GNU Octave 3.8.2 the overriden size had
been respected by isscalar, isvector, and isequal.
What is the desired behaviour?
1) A user-defined class must override all methods together to get a consistent
behaviour: size, isvector, isscalar, and isequal. Any builtin functions will
assume that the object's size is always [1 1].
2) A user-defined class must override size only. The builtin functions will
respect the overriden size method and produce a consistent behaviour for the
user (like they did in version 3.8.2).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44498>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #44498] isvector: Always returns true for objects from user defined classes,
Oliver Heimlich <=