bugGNU Octave - Bugs: bug #32381, Another syntactic change between...

 
 

bug #32381: Another syntactic change between 3.2 and 3.3.92

Submitter:  Pascal Dupuis <cdemills>
Submitted:  Mon 07 Feb 2011 08:18:01 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Pascal Dupuis Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 08 Feb 2011 08:00:13 AM UTC, comment #1: 

The NEWS file already includes this entry:


  ** The behavior of struct assignments to non-struct values has been
     changed.  Previously, it was possible to overwrite an arbitrary
     value:

        a = 1;
        a.x = 2;

     This is no longer possible unless a is an empty matrix or cell
     array.


John W. Eaton <jwe>
Group administrator
Mon 07 Feb 2011 08:18:01 PM UTC, original submission:  

Hello,
found recently an expression which was valid under 3.2 and isn't accepted anymore:
R = randn(3,3)
R.R = R
The purpose is to transform the matrix into a structure whose a field name is 'R'. Workaround:

dummy = R; R=[]; R.R = dummy;

Under 3.3.92, the first approach results in
error: invalid assignment to cs-list outside multiple assignment

Regards

Pascal

Pascal Dupuis <cdemills>
Group Member

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by cdemills (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
    2011-02-08 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code