[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44940] Empty class indexing should result in
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #44940] Empty class indexing should result in copy of object rather than error |
Date: |
Mon, 27 Apr 2015 15:43:28 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0 |
URL:
<http://savannah.gnu.org/bugs/?44940>
Summary: Empty class indexing should result in copy of object
rather than error
Project: GNU Octave
Submitted by: rik5
Submitted on: Mon 27 Apr 2015 08:43:27 AM PDT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
This is a continuation of the bug and fix in this patch report
(https://savannah.gnu.org/patch/?8152#postcomment). Previously, Octave was
segfaulting when an attempty was made to use a null index on a class object.
For example
x = foo ()
y = x()
The classdef file foo.m is attached to this report. In this cset Octave was
changed to issue an error and stop segfaulting
(http://hg.savannah.gnu.org/hgweb/octave/rev/274b52724931). This is certainly
preferable.
However, for ultimate Matlab compatibility Octave should simply return the
base object x rather than issue an error. Testing of that was done in the
patch cited.
Probable solution is something like retval = this, but using the correct
syntax.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 27 Apr 2015 08:43:27 AM PDT Name: foo.m Size: 66B By: rik5
<http://savannah.gnu.org/bugs/download.php?file_id=33817>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44940>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #44940] Empty class indexing should result in copy of object rather than error,
Rik <=