bugGNU Octave - Bugs: bug #33050, syntax error in anonymous...

 
 

bug #33050: syntax error in anonymous functions in arrays

Submitter:  None
Submitted:  Mon 11 Apr 2011 11:16:12 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Chie Ng Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.2.4
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 28 Sep 2011 05:01:11 AM UTC, comment #2: 

Fixed in this changeset

changeset:   13237:1bfca2bbea8b
user:        John W. Eaton <jwe@octave.org>
date:        Tue Sep 27 03:22:48 2011 -0400
summary:     fix parsing of anonymous functions inside cell array lists.

The reporter will need to build from Mercurial development sources or wait until the next major release (3.6).

Rik <rik5>
Group administrator
Wed 04 May 2011 05:02:16 AM UTC, comment #1: 

Confirmed that this is present on the development branch as well (2011/05/03).

Rik <rik5>
Group administrator
Mon 11 Apr 2011 11:16:12 PM UTC, original submission:  

Anonymous functions in cell array can not have spaces between the parameter list and the function body.


CASE 1> z = @(w) sin(w)
z =

@(w) sin (w)

CASE 2> z = {@(w) sin(w), @(w) cos(w)}
parse error:

  syntax error

>>> z = { @(w) sin(w), @(w) cos(w)}
              ^
CASE 3> z = {@(w)sin(w), @(w)cos(w)}
z =

{
  [1,1] =

@(w) sin (w)

  [1,2] =

@(w) cos (w)

}


Anonymous

 

(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 None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-28 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2011-05-04 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code