bugGNU Octave - Bugs: bug #44777, Error "no method for 'scalar...

 
 

bug #44777: Error "no method for 'scalar struct = scalar'"

Submitter:  Guillaume <gyom>
Submitted:  Wed 08 Apr 2015 03:43:50 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 23 Nov 2015 05:45:26 AM UTC, comment #1: 

This has been fixed sometime since April.  With 20735:418ae0cb752f from 11/22/15 the problem example now works in Octave.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Wed 08 Apr 2015 03:43:50 PM UTC, original submission:  

I came across the following with structure arrays; MATLAB is fine with it but am not sure it is a valid syntax.


A = struct('A',1,'B',1);
[A(:).C] = deal(1);
error: invalid assignment to cs-list outside multiple assignment
error: assignment failed, or no method for 'scalar struct = scalar'

A = struct('A',1,'B',1);
[A.C]=deal(1);

% works fine if numel(A) > 1
A = struct('A',{1,2},'B',{1,2});
[A(:).C] = deal(1);

A = struct('A',{1,2},'B',{1,2});
[A.C] = deal(1);


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 rik5 (Posted a comment)
  • -email is unavailable- added by gyom (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
    2015-11-23 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code