[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40576] Assignment to Cell Array of Structure
From: |
Matt |
Subject: |
[Octave-bug-tracker] [bug #40576] Assignment to Cell Array of Structure Fields Gives invalid assignment Error |
Date: |
Thu, 14 Nov 2013 04:55:09 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 |
URL:
<http://savannah.gnu.org/bugs/?40576>
Summary: Assignment to Cell Array of Structure Fields Gives
invalid assignment Error
Project: GNU Octave
Submitted by: seventhunders
Submitted on: Thu 14 Nov 2013 04:55:08 AM GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Matt
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: GNU/Linux
_______________________________________________________
Details:
This is a pretty nasty little bug that breaks compatibility with Matlab.
Basically for fairly complex cell arrays that contain structures, it may fail
to assign fields of those structures.
Consider the following code snippet. (Requires loading saved cell array file
cellassbug)
load cellassbug
% error: invalid assignment to cs-list outside multiple assignment
pcUlBuf{1,1,1}.bins = 2 * pcUlBuf{1,1,1}.bins ;
% actually any assignment to members of the cell array struct now fails
% e.g.
pcUlBuf{1,1,1}.bins = 2 ;
Running this with the provided saved file yields the error,
error: invalid assignment to cs-list outside multiple assignment
Matlab has no problem with this, and I don't understand why octave should have
issues with it either.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 14 Nov 2013 04:55:08 AM GMT Name: cellassbug Size: 248kB By:
seventhunders
<http://savannah.gnu.org/bugs/download.php?file_id=29617>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40576>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40576] Assignment to Cell Array of Structure Fields Gives invalid assignment Error,
Matt <=