[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53906] Cannot make an object array with squar
From: |
Richard |
Subject: |
[Octave-bug-tracker] [bug #53906] Cannot make an object array with square brackets |
Date: |
Tue, 15 May 2018 06:34:25 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/65.0.3325.181 Chrome/65.0.3325.181 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?53906>
Summary: Cannot make an object array with square brackets
Project: GNU Octave
Submitted by: crobar
Submitted on: Tue 15 May 2018 10:34:24 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Richard Crozier
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: GNU/Linux
_______________________________________________________
Details:
Making an array of classdef objects using square barckets like below does not
work in octave:
>> x = method_debug_test ()
x =
<object method_debug_test>
>> y = method_debug_test ()
y =
<object method_debug_test>
>> z = [x, y]
warning: struct: converting a classdef object into a struct overrides the
access restrictions defined for properties. All properties are returned,
including private and protected ones.
error: invalid conversion of multi-dimensional struct to scalar struct
>>
In matlab I get:
>> x = method_debug_test ()
x =
method_debug_test with no properties.
>> y = method_debug_test ()
y =
method_debug_test with no properties.
>> [x, y]
ans =
1×2 method_debug_test array with no properties.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 15 May 2018 10:34:24 AM UTC Name: method_debug_test.m Size: 169B
By: crobar
<http://savannah.gnu.org/bugs/download.php?file_id=44160>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53906>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53906] Cannot make an object array with square brackets,
Richard <=