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:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Open
Release:  dev Operating 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>
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 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 lachlan (Posted a comment)
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-29 siko1056 Item GroupRegression => Incorrect Result
    2016-04-25 siko1056 CategoryNone => Interpreter
        Item GroupNone => Regression
        StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.3