|
From: | Piotr Held |
Subject: | [Octave-bug-tracker] [bug #51641] Indexing classdef properties with end fails |
Date: | Tue, 1 Aug 2017 20:05:17 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?51641> Summary: Indexing classdef properties with end fails Project: GNU Octave Submitted by: jsoh425 Submitted on: Wed 02 Aug 2017 12:05:16 AM UTC Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: Incorrect Result Status: None Assigned to: None Originator Name: Piotr Held Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Any _______________________________________________________ Details: Indexing a class property fails when using the magic 'end'. Consider the following code: classdef indexing_props < handle properties prop1; end end %!test %! a = indexing_props; %! a.prop1 = 5:10; %! a.prop1 (2:end) %! a.prop1 (1:end) When calling 'a.prop1 (2:end)' the result is: '[](1x0)' When calling 'a.prop2 (1:end)' the result is: '5' I know this is similar to Bug #50626 <https://savannah.gnu.org/bugs/?50626> but I don't think it is exactly the same. As far as I understand, in that case someone was trying to index the class, here the problem is indexing a class property. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?51641> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |