bugGNU Octave - Bugs: bug #47755, Access to object arrays


bug #47755: Access to object arrays

Submitted by:  Guillaume <gyom>
Submitted on:  Thu 21 Apr 2016 04:26:34 PM UTC  
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: GuillaumeOpen/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 29 Jun 2016 10:32:48 AM UTC, comment #4:

It never worked, I gave it an unsuitable item group. I think "Incorrect Result" fits better.

Kai Torben Ohlhus <siko1056>
Project Member
Wed 29 Jun 2016 10:11:27 AM UTC, comment #3:

This is tagged as a "regression". What version did it work in?

Lachlan Andrew <lachlan>
Project Member
Mon 25 Apr 2016 02:31:17 PM UTC, comment #2:

I can confirm the output of the original post and #1. Furthermore it should return the vector [1, 2] in any case.

The Octave's classdef implementation seems to be close to the behavior of a struct.

Matlab produces:

Octave produces:

Kai Torben Ohlhus <siko1056>
Project Member
Thu 21 Apr 2016 05:06:32 PM UTC, comment #1:

To be more precise, here is what happens with different syntax calls:

Guillaume <gyom>
Thu 21 Apr 2016 04:26:34 PM UTC, original submission:

Given a class like this:

create an object array:

A call to myprop() property should return [1 2] but instead it returns:

Guillaume <gyom>


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by siko1056 (Posted a comment)
  • -unavailable- added by gyom (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 Jun 2016 10:32:48 AM UTCsiko1056Item GroupRegression=>Incorrect Result
    Mon 25 Apr 2016 02:31:17 PM UTCsiko1056CategoryNone=>Interpreter
      Item GroupNone=>Regression

    Back to the top

    Powered by Savane 3.1-cleanup1