[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55983] 'x(ix) = []' deletion syntax does not
From: |
Andrew Janke |
Subject: |
[Octave-bug-tracker] [bug #55983] 'x(ix) = []' deletion syntax does not work for objects |
Date: |
Fri, 22 Mar 2019 19:38:39 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?55983>
Summary: 'x(ix) = []' deletion syntax does not work for
objects
Project: GNU Octave
Submitted by: apjanke
Submitted on: Fri 22 Mar 2019 11:38:37 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: Any
_______________________________________________________
Details:
The special 'x(ix) = []' syntax is supposed to remove identified elements from
the array x, regardless of x's type. That is, [] may be a double, but it
doesn't matter whether x's type is assignment-compatible with double for this
special calling form.
This doesn't work for classdef objects. For example:
octave:1> addpath('~/local/repos/octave-packajoozle/inst')
octave:2> pkg = packajoozle.internal.PkgVer ('financial', '0.5.3')
pkg =
financial 0.5.3
octave:3> p = pkg;
octave:4> p(2) = pkg;
octave:5> p(3) = pkg
p =
financial 0.5.3; financial 0.5.3; financial 0.5.3
octave:6> p(2) = []
error: cannot convert `null_matrix' into `object'
octave:6>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55983>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55983] 'x(ix) = []' deletion syntax does not work for objects,
Andrew Janke <=