bugGNU Octave - Bugs: bug #51641, Indexing classdef properties with...

 
 

bug #51641: Indexing classdef properties with end fails

Submitter:  Piotr Held <jsoh425>
Submitted:  Wed 02 Aug 2017 12:05:16 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Piotr Held Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 07 Aug 2017 03:38:50 PM UTC, comment #5: 

Verified that behavior is correct with 23837:551e4d1dd28f.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Fri 04 Aug 2017 08:28:30 PM UTC, comment #4: 

Anyway it does currently work (now as of cset: 01899bdd2a3a). So this bug report should be closed.

Piotr Held <jsoh425>
Wed 02 Aug 2017 08:45:46 PM UTC, comment #3: 

The title of 51641 is certainly more to the point than of 50923

A.R. Burgers <arb>
Wed 02 Aug 2017 05:29:02 PM UTC, comment #2: 

Yes I agree. I didn't notice it earlier. I guess this Bug Report can be closed.

Piotr Held <jsoh425>
Wed 02 Aug 2017 05:25:31 PM UTC, comment #1: 
A.R. Burgers <arb>
Wed 02 Aug 2017 12:05:16 AM UTC, original submission:  

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 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.

Piotr Held <jsoh425>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by arb (Posted a comment)
  • -email is unavailable- added by jsoh425 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-07 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code