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

 
 

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

Submitted by:  Guillaume <gyom>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

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>
Project 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)
  •  

    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 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.5